Message ID | 1506617303-32509-1-git-send-email-rasland@mellanox.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E92F81B1B7; Thu, 28 Sep 2017 18:48:38 +0200 (CEST) Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0085.outbound.protection.outlook.com [104.47.0.85]) by dpdk.org (Postfix) with ESMTP id 4BA731B1AF for <dev@dpdk.org>; Thu, 28 Sep 2017 18:48:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=E1hV0cAybAhZ0Lad/5AtHMgUQZdfdvc8z7DE8uCBgkc=; b=wXv4TKDGGOFA57z/2Uvt2V3aZTfYzxAVLPCWvUh3Ux7bwKCpAQWT51HBUMFtBYnKwhEUHMliky9Rn1cpBGRu8AUqBT+ogODzIZJAAYq1jE5qwtc6QxWfKR2hmYZwFsJns+ESr+dMKot9bVa/d6P5c1fXlI7wx+QZta5CrYVvaFc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR05MB1232.eurprd05.prod.outlook.com (2a01:111:e400:582e::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 28 Sep 2017 16:48:34 +0000 From: Raslan Darawsheh <rasland@mellanox.com> To: dev@dpdk.org Cc: yskoh@mellanox.com Date: Thu, 28 Sep 2017 19:48:21 +0300 Message-Id: <1506617303-32509-1-git-send-email-rasland@mellanox.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503560793-21597-1-git-send-email-rasland@mellanox.com> References: <1503560793-21597-1-git-send-email-rasland@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: AM5PR0602CA0015.eurprd06.prod.outlook.com (2603:10a6:203:a3::25) To VI1PR05MB1232.eurprd05.prod.outlook.com (2a01:111:e400:582e::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 87399e45-89b1-44b8-36aa-08d50690c272 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:VI1PR05MB1232; X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB1232; 3:7Rqsls2RRH3S/ZAk48fUGfiKTIz3MwQFzKHi+AqRePib3VyWldl8tMwdgDW0TwtGmtwaCosH1gRKhvaBj7e4WK53VgjWr20qIQeT2hZxKaUEuAaUBThi5n+jtLlklMAJgI6kWX5GDu+sMOtjl+FxqtcitGjizSha7j3hbRX+Q1OIiJWcbvU0fy00gn0xTyH/PQhXUHU9XQBgObKTxujr0zImb7zts8oCjRRcbIgfwrXl6NEvw1PdQGGee8p6McZn; 25:P/NRriTBfcyDYuENo2AuQP2SgnhZhV9AIKnIbtw2HDo6Lqxi1U0XIrb1+v2mnHZ7SEFGFmQFclFJFw7FfsqwNSOcYdla/BFkaIPmWegbM3SPvjFjA9Y3orz+GKQ7Q/3oHak9WpzVafSJFHB/hLdZh4jClamlGsGIxPEVUeNJo5KH58ugzINqKyrx2NdqEKbt2ss3hjTMLOJQz6UtXHI5x6y0/o4Yo1aEEGvkWOcQuNRBQzJIBQdZ0YTmCR321vQ2ejXKpWSNTBJLHsbyJiQmd/zBJCBZA4KxHkERZk8DjS/h8Uq5xeBpDpWzTzl1L5WvR7ly+VvywKqJbslgR4mvMQ==; 31:NZfodYTz1t/KFbEtlkVC2PxYW2NAXJgYGuNV17pmnHELSxSSS/hNUEImnu0uwBs5bBUWz0uLzDOgTNMcjxnTdVEllVBh/roKE0aRopk0peY9pxUi1p7NcIWvUYGOcwQMn1+J2e4Ta3Fbx5Wkv+KuVN5+JAzgdyftBRirPuiqYvl2tuWwdUkiq6P9gSG62QRWvpiEAX7aNWopqAcuvt1HcsL3scvWZn88CgHlMc38qy4= X-MS-TrafficTypeDiagnostic: VI1PR05MB1232: X-Microsoft-Exchange-Diagnostics: 1; VI1PR05MB1232; 20:Tr043bVmxepUQAwCzPjP76hv1dF/FvU2ag2wdkgWvQJrI4lJraUn+4SzMJt0rFDZbOadBSbIrqWB1QPi8rJLtrXRvARPF/9DJKphn9bB/gfyhYNIv7KZg7iranrbMCTFbpsP5SybLxTKgOTDr/utcMxayWJ3if8e+0TkL/v3i98QxbYU6NVN61IciZsc3VWzsy3IneUvZhEsnAdkemuc0XJApk0sr0mNl+T9YRnJ8F4j4xciJRfHQ5DcZGDNaCX8K/lZRBNdWfcGoTBoyJdHxzMhBtrFkaR/8gcGaFRQabejIjqN+/ufLulGgzxC0hhk+i2cge4FW7zgFf6EWbIFzFnF89YzTBVA9A3Rd6sVCruNWLY5s+BID1Tvt4yeAM7swArgdIJQtbQHNeWgYS3W3guNEySGEwJXQZiUYuhT6yR8iFv8YI4Agsdiq4BSOCLoGaiiz2DkUlVDfLcGzMxfIwc9ClBcj3uK64fyy1PyzB29M9UsI5u0KgfCrrQySWLA; 4:jfekeMmatZjnyO/PnZux21KE0FBfyuxmPhqkFdwHjnUzXLYyth92rPQQ+uWxZ2tKA0Nt9DhJFM2v7wGepwKRVUZsVq9Qz/c3eoWqQmvBBIp87Fs96RqHMmt80W/2Djb0p0i7jec30DSz4RUEieyD9DKO8Ta0SsZ4HD5Jr5x+J8OF9dBpIgLO7y3hEClKJTxEc9iXrmDJ0c14Kj5U09OacSE/JBc3/BLzsj4AlJCBW/0ZiLAEOEe/ELo4DbfgfBQd X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <VI1PR05MB12322654120899461762F6CBC2790@VI1PR05MB1232.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR05MB1232; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR05MB1232; X-Forefront-PRVS: 0444EB1997 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(39860400002)(346002)(376002)(189002)(199003)(5003940100001)(106356001)(50986999)(105586002)(6666003)(107886003)(81156014)(36756003)(50226002)(68736007)(2950100002)(33646002)(8936002)(8676002)(2351001)(6916009)(2361001)(6116002)(3846002)(478600001)(101416001)(189998001)(53936002)(86362001)(4326008)(76176999)(50466002)(5660300001)(97736004)(7736002)(47776003)(33026002)(81166006)(69596002)(2906002)(48376002)(21086003)(305945005)(16526017)(66066001)(16586007)(55016002)(25786009)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR05MB1232; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR05MB1232; 23:AmRMoW+G/DOZKy/P64mT0xu8c1m874tRpyd6KG7QH?= oLerld5Bvn7b7MlNpW7gwePE5fKOjPdFHai7RaAtPs7WmsvxWEqh5ha6ds76XybP3iSIL8f2W0ZbVnoFenJFjenX2JjA9dYDhivMN3WdiovxUZ4aM/IlGEFqT5vjJJO7vFbD/gRly5Q3X6Yoge9n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4VLgFM8oS6x0KBuLxFN4IyFuy9Fzq3CZlk25xQL41KlcRQwbsPMwOIAzksJpOWVCUE+J2kMTzDXITayJ75uImQYfIhRMQfxqMilz5BW9gt7UfM7+7pbEFFBBfViAEJzNkbGFXRkngvmxxVZa4jOoRpqLLFVhcNcjFSoqGp9tOABXKDt6sNg+f1srbqvfiE82FdreWJrrIDhyuswaDSjKBbjqaC9THxn8m8HPus96ZQEOcnMW7+PK0hZdaYwiHQIeVNGP9b03oUI5A7NA1FiIRRU6ZHjDZB7X7UHOYruYOHLjda4j27qJ67nfHrQ==; 5:lTmecDJvmyQYi2ogK1wlH6T7j/3VxBormFbBDtbJMBGfPZNCND62M0cbqeWCZNmTyIgC7q7o7nQ7amxMAF+kgayih0TNW16IUfv8FlV1iHEi/GnuYQtav35p16tDxlD0JB5NIVpGz3UpjJsXpYoK+A==; 24:7lXDHjqLriDJdpvbKJ3KencWgfbnefgyD+o/bBDWWSMV8bfjDwLD20/BIfP5GR464CcmVdMVuAEazAu0G4J38So9ARVnbnxvVqQ1vda/Z3c=; 7:029BYsfK84Cj/I+Ag/o9nBY/+gSgTkZv5SJi6t2dUZvTS8x0XAD1yrFWimS9cwdM120r9yMCvGoC/1Wc0LlieTV3tnM+fHSZfuFlj3xvnfPQ7bRkLxPrZCxVB8uyOAIhX7D+1scmm/NkVU7KNqhjb86enXy2ihESaDFuwm42QFz6MTj90V16NDPQn/7XANaHMQhf8dJeTXpXjNu3SIOu6AnmNQuRuLKeiat6pBUN3Zo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2017 16:48:34.5271 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1232 Subject: [dpdk-dev] [PATCH v3 1/3] ethdev: add Rx HW timestamp capability X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Checks
Context | Check | Description |
---|---|---|
ci/checkpatch | warning | coding style issues |
ci/Intel-compilation | success | Compilation OK |
Commit Message
Raslan Darawsheh
Sept. 28, 2017, 4:48 p.m. UTC
Add a new offload capability flag for Rx HW timestamp and enabling/disabling this via rte_eth_rxmode. Signed-off-by: Raslan Darawsheh <rasland@mellanox.com> Acked-by: Yongseok Koh <yskoh@mellanox.com> --- lib/librte_ether/rte_ethdev.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Comments
On 09/28/2017 07:48 PM, Raslan Darawsheh wrote: > Add a new offload capability flag for Rx HW timestamp and enabling/disabling > this via rte_eth_rxmode. I think it should be on top [1] and ideally follow a new offload API without addition of a new bit field which will be removed soon. Also, please, update documentation (doc/guides/nics/features.rst) Andrew. [1] http://dpdk.org/ml/archives/dev/2017-September/076872.html
Hi Andrew, Friday, September 29, 2017 10:26 AM, Andrew Rybchenko: >On 09/28/2017 07:48 PM, Raslan Darawsheh wrote: >>Add a new offload capability flag for Rx HW timestamp and enabling/disabling >>this via rte_eth_rxmode. > >I think it should be on top [1] and ideally follow a new offload API without >addition of a new bit field which will be removed soon. > >Also, please, update documentation (doc/guides/nics/features.rst) > >Andrew. > >[1] http://dpdk.org/ml/archives/dev/2017-September/076872.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdpdk.org%2Fml%2Farchives%2Fdev%2F2017-September%2F076872.html&data=02%7C01%7Cshahafs%40mellanox.com%7C029845c0b55d49299f3f08d5070b57e0%7Ca652971c7d2e4d9ba6a4d149256f461b%7C0%7C0%7C636422667676863312&sdata=83RStoqLwxS55vOFENOq1BDsM%2BhN3QNldpTdfooZMck%3D&reserved=0> I agree it should be on top of [1]. Unfortunately since the PMDs will move to the new API only on 18.02, and in the current state Rx offloads are disabled by default, there will be no way to enable this feature without a dedicated bit. So my suggestion is to keep the timestamp bit on rxmode, and to update the convert function introduced on [1]. This bit will be removed along with the entire bit-field array once the old offloads API will be deprecated.
diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0adf327..b8f3e16 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -357,7 +357,8 @@ struct rte_eth_rxmode { jumbo_frame : 1, /**< Jumbo Frame Receipt enable. */ hw_strip_crc : 1, /**< Enable CRC stripping by hardware. */ enable_scatter : 1, /**< Enable scatter packets rx handler */ - enable_lro : 1; /**< Enable LRO */ + enable_lro : 1, /**< Enable LRO */ + hw_timestamp : 1; /**< Enable HW timestamp */ }; /** @@ -907,6 +908,8 @@ struct rte_eth_conf { #define DEV_RX_OFFLOAD_QINQ_STRIP 0x00000020 #define DEV_RX_OFFLOAD_OUTER_IPV4_CKSUM 0x00000040 #define DEV_RX_OFFLOAD_MACSEC_STRIP 0x00000080 +#define DEV_RX_OFFLOAD_TIMESTAMP 0x00000100 +/**< Device delivers timestamp of packet arrival. */ /** * TX offload capabilities of a device.