From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8403AA0487 for ; Sun, 28 Jul 2019 09:44:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C82741BF40; Sun, 28 Jul 2019 09:44:02 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 702CE1BEBF for ; Sun, 28 Jul 2019 09:44:01 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6S7fwYU031958 for ; Sun, 28 Jul 2019 00:44:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=w/OHi5PzAVCYBD/u8o3DY168kGcu7/sXy1E+EwmIp2o=; b=mOAIq/3Tdy/oD3Z8LjdNlsHsxgjvHUnVTcwLK1lFLww7vcNC6RXAFQDc9t4Vdwd1NZNt dCcVj5QUoDhfA3aWRBVAnGKYEOFydezpeDhGjfXNJcSHCl4dGvezuBIdA8BH6U0MCLdT W4bVn61hevAW/sTNiLJEWKVfQz1Xt53TURw4SaObpOy6LJzMAHLhF3pa66b7IXpL+8SY IHdkbFp/07OhSsW+zhaloklcCF/UXHbu1x+tFn2ve7XXmU/7MwrmykFuHl2s8YWe+ify TcRIbAVwLjGTdapEpNi6vX/ET4M8ZwYHFck9OlC+/WWgf2DZtpPWRSl3MbKjDE7VzISW ug== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2u0p4ktuw2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 28 Jul 2019 00:44:00 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Sun, 28 Jul 2019 00:43:58 -0700 Received: from NAM03-DM3-obe.outbound.protection.outlook.com (104.47.41.57) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Sun, 28 Jul 2019 00:43:58 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MA2Td7bAryVm4mDiZzx+nAS3t4/Bhz/RlzIhgrXUJp1Nc3QcobB3rJ3hR7FwYaUP5Fk6tw/TspevDBaQnrj4+qpliICWYLctYGbtimOMbEbVktzq2M3bjtX3qst51pV3zltdous3q1Ni4lh20VbzfUVltlUXs/j/YCwpL1KHiozjhEDwVTjGJB1wEbku0WQsorVwkW6df2z4dTGvDisfO3lkdAEzbIsTdHkqwbxheqTh/pRYEOZYedqumSuWEIKFDcxBVakmHm8J/EErZDGJS4l6ni6exlY3aabU+gEWnlMeMFUg5G2ErKLPFsBwcfOjdAt1m76LFjRDN7zR+kk7dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w/OHi5PzAVCYBD/u8o3DY168kGcu7/sXy1E+EwmIp2o=; b=bFybtE2h55Ufz05RUHBDY9EDRJZ/RCQptekqxqfVizgmV53BYQq6x6hdLdPsbqQH0QAOowWduyfOR3wJVMW0ntxqMpZVfplRYy3cZFNWbrKBj4NQTgeY6MRzRpfJmdNyrQ+Xj5eIjKc2u0qki+rfr2RE3eXlfbMlYt38T5WwO+ZJxaj4ZHMAuRUh9RHyYmNmHeba23Uahw5JdrmOixkOlNWeAnGOGFCzPHMwq7xCVkapvAWe9KdH5VELitPTUfze/tTzquQ10AGvbWyd3un1XdGDfUtk92kNylCRW7oJHoIZVq6g4u7BCzq0ZElGs6vHlt+hWIpLB5FjwpAiSpl1sg== ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=marvell.com;dmarc=pass action=none header.from=marvell.com;dkim=pass header.d=marvell.com;arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=w/OHi5PzAVCYBD/u8o3DY168kGcu7/sXy1E+EwmIp2o=; b=wp8zmcxBjiC9lNc4zQw9Lenn/v2Grz8p6dCJcQa0OqkJAMUpc7cSp20IcHgsx9sNQAfJlvCU2qbikQEP/3eeKxZvbO5WWL9nHrMAtPaqbjZIEfDO89DA4jIU6veTaio8fpf4jNiwK7vBlyvq71flANm6eMUKixApGxcmwl+jw4c= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2453.namprd18.prod.outlook.com (20.179.92.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.13; Sun, 28 Jul 2019 07:43:55 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2d42:12b6:aa2e:2862]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2d42:12b6:aa2e:2862%4]) with mapi id 15.20.2115.005; Sun, 28 Jul 2019 07:43:55 +0000 From: Jerin Jacob Kollanukkaran To: Harman Kalra , Nithin Kumar Dabilpuram , Vamsi Krishna Attunuru , Kiran Kumar Kokkilagadda CC: "dev@dpdk.org" Thread-Topic: [PATCH v2 2/2] net/octeontx2: support read clock API Thread-Index: AQHVRLuiFkcjaQKpZkqt8B13nbuKqabfph6A Date: Sun, 28 Jul 2019 07:43:55 +0000 Message-ID: References: <1564260052-28926-1-git-send-email-hkalra@marvell.com> <1564260052-28926-2-git-send-email-hkalra@marvell.com> In-Reply-To: <1564260052-28926-2-git-send-email-hkalra@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [106.200.230.107] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ed271bd0-905b-4c7f-53f7-08d7132f581a x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:BYAPR18MB2453; x-ms-traffictypediagnostic: BYAPR18MB2453: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:506; x-forefront-prvs: 01128BA907 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39850400004)(396003)(346002)(376002)(366004)(136003)(13464003)(199004)(189003)(99286004)(5660300002)(71200400001)(229853002)(102836004)(476003)(86362001)(6636002)(71190400001)(486006)(446003)(6436002)(11346002)(66446008)(76176011)(7696005)(25786009)(110136005)(68736007)(316002)(186003)(26005)(14454004)(76116006)(66946007)(74316002)(66476007)(66556008)(64756008)(305945005)(7736002)(478600001)(9686003)(33656002)(66066001)(81166006)(81156014)(3846002)(6116002)(8936002)(8676002)(53936002)(52536014)(256004)(55016002)(6506007)(53546011)(6246003)(2906002)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2453; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: ARY5Y0cIXIpFtYVs/Zq3d2SNgBR3gxxBW01FYaMeUIHkB5CBTWyqFz1F1X4eup2rfuaUjLrOVaA4V5iM2sbb2R9GTZeQuEL7BTv+qfFgA4wEZsicm2nKzlg4N8tt7RPbbzSwYdU08qnoGrgTcvFkj6MjhBhapGylxCjH963gbKiwcCGITMnqYmHcdtv+Nlk2tDzEspzBcKuk5CfRXt0rUhZXhkoE7utOCSDkAZsKOHljyLXmXPUwi1J7qKvWPze4k6+C/El5Ek1fpOsK6+7xD0b9d1d5KciD/yOAsPhF+Owyn7IIw3tvMC+bYqTFj+t3MNRxT9VRkEsS5YZPKj81HT3pvEgnsZb3v9q7jrJ9t6a67qt3Tx2saVlxwBjtrysYhR4E4J/BcskjloppiU8ouDNkK/0MvtZjyUjJHedVv8s= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ed271bd0-905b-4c7f-53f7-08d7132f581a X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jul 2019 07:43:55.7606 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: jerinj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2453 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-28_03:2019-07-26,2019-07-28 signatures=0 Subject: Re: [dpdk-dev] [PATCH v2 2/2] net/octeontx2: support read clock API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" > -----Original Message----- > From: Harman Kalra > Sent: Sunday, July 28, 2019 2:11 AM > To: Jerin Jacob Kollanukkaran ; Nithin Kumar Dabilpur= am > ; Vamsi Krishna Attunuru > ; Kiran Kumar Kokkilagadda > > Cc: dev@dpdk.org; Harman Kalra > Subject: [PATCH v2 2/2] net/octeontx2: support read clock API >=20 > This patch implements read clock api whose purpose is to return raw clock= ticks. > Using this API real time ticks spent in processing a packet can be known: > - mbuf->timestamp >=20 > Calling mbox for reading raw clock ticks in fastpath is very expensive so= its value > is derived from time stamp counter(tsc) using freq multipler (ratio of ra= w clock > ticks and tsc) and clock delta (by how much tsc is lagging from raw clock= value). >=20 > Signed-off-by: Harman Kalra > --- > V2: > * More detailed commit message > * changed rdtsc to tsc (timestamp counter) > * Initialized a variable to zero only when needed > * changed done label to fail >=20 > drivers/common/octeontx2/otx2_mbox.h | 2 + > drivers/net/octeontx2/otx2_ethdev.c | 89 ++++++++++++++++++++++++++++ Move as much changes to otx2_ptp.c, rest it looks good to me.