Message ID | 1503560793-21597-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 [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 031187D52; Thu, 24 Aug 2017 09:46:50 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40050.outbound.protection.outlook.com [40.107.4.50]) by dpdk.org (Postfix) with ESMTP id CDDF07D3A for <dev@dpdk.org>; Thu, 24 Aug 2017 09:46:47 +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=NBmQh9nTtHK7Qh8YfnQ3Og/s0cVW7KZRlfkJteGvy9U=; b=thvxPLYs9vMDZPk2KTcgRI/trH2RsfOabwPWzJmkswLQeuSqpfBCjBLx+tZorLZbc7a9Ob4awU6iGZf4h+WvaXPLAHAJv11WJswZRqJFfqFPkya4nRM4RE72SIECLVCXfp+D2UbsJTR5ThdLG+mZoPK/45IltG7XFvH2/kTuNO0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=rasland@mellanox.com; Received: from mellanox.com (37.142.13.130) by AM2PR05MB1218.eurprd05.prod.outlook.com (2a01:111:e400:8450::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Thu, 24 Aug 2017 07:46:45 +0000 From: Raslan Darawsheh <rasland@mellanox.com> To: thomas@monjalon.net, jingjing.wu@intel.com, dev@dpdk.org, nelio.laranjeiro@6wind.com, adrien.mazarguil@6wind.com Date: Thu, 24 Aug 2017 10:46:31 +0300 Message-Id: <1503560793-21597-1-git-send-email-rasland@mellanox.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503409570-9946-3-git-send-email-rasland@mellanox.com> References: <1503409570-9946-3-git-send-email-rasland@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: HE1PR0102CA0056.eurprd01.prod.exchangelabs.com (2603:10a6:7:7d::33) To AM2PR05MB1218.eurprd05.prod.outlook.com (2a01:111:e400:8450::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6f2f7f75-edf7-4450-b4f0-08d4eac4456c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM2PR05MB1218; X-Microsoft-Exchange-Diagnostics: 1; AM2PR05MB1218; 3:+8cCKqw2IN0oPWJmsf114yu4zo8lnuu2pAO7TKlImXZ9gz8welBzY5vVTMyL7hycozJ59XbTu9MmNgd/f7PivhqR0ayKYa5ZXjEwMWkzVEGwBNtlITFddVQaT/S57AAkFfMJXIQ26ExxrIhDqvxJGsMtPQDyEyoR8nyRVobQyqooJ+lGl8mEG3MjF2bOMv6+CvknQb9Py4pyyEnDNCePvvbgAK9yTqsnC2YsutWCrVTyhFGjh4gbCWVJeSiJRp1f; 25:zM7y2uAntWBpWDNAXWCQDjgsM8BBHz/xwcwL1El4E6KeNTEazpwfqIK/yJGt9p3FlVuAxn4i1zyqBWn2jr4R9I8lDh15ef5kXJcfK+P/PayiNnDfHJkXPjVhvTfNlNT+XdP6WHno11Ndyosu38mSgk/BlJIUq0t7ohOWjNLjLfM52VqQchxq6PTbn+u3KrACcAsNZ/K6usk4s0pXNY0/pUOD++5b8Dugtlfb05S5P41by9CGujxcBBPWrexOfKZlRhe2M/0OM9nUbjDOYrQzz6es++/fQW6S3WCBKHHKlb2Wu5BlqHr/kzdPFn0ypGP6kq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egiR4FdHyU+H7oY8xBMXTfkEEqaV7GgmD5e6AtUPKOqwejm6kovEdhMKg4I3MArWEd1LScU2XnwvGn4udiTp3RaVLJp8d6vJfW/7mD5u12xlOtJA= X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-Microsoft-Antispam-PRVS: <AM2PR05MB12185BE74ACE2D72739B9125C29A0@AM2PR05MB1218.eurprd05.prod.outlook.com> X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM2PR05MB1218; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM2PR05MB1218; X-Forefront-PRVS: 04097B7F7F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(7370300001)(4630300001)(979002)(6009001)(39860400002)(199003)(189002)(86362001)(68736007)(55016002)(3846002)(66066001)(21086003)(6116002)(478600001)(69596002)(47776003)(2906002)(7350300001)(53376002)(6666003)(2950100002)(110136004)(36756003)(189998001)(48376002)(6306002)(53936002)(76176999)(33026002)(5660300001)(305945005)(33646002)(50466002)(42186005)(8676002)(81156014)(105586002)(97736004)(81166006)(7736002)(25786009)(106356001)(101416001)(5003940100001)(50986999)(50226002)(966005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR05MB1218; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exch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StEOuFpKYnB9HkeduVkP7qD5yIg= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2017 07:46:45.3761 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR05MB1218 Subject: [dpdk-dev] [PATCH v2 1/3] ethdev: expose Rx hardware timestamp 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/Intel-compilation | success | Compilation OK |
ci/checkpatch | success | coding style OK |
Commit Message
Raslan Darawsheh
Aug. 24, 2017, 7:46 a.m. UTC
Added new capability to the list of rx offloads for hw timestamp
The PMDs how expose this capability will always have it enabled.
But, if the following API got accepted applications can choose
between disable/enable this API.
http://dpdk.org/dev/patchwork/patch/27470/
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
---
lib/librte_ether/rte_ethdev.h | 2 ++
1 file changed, 2 insertions(+)
Comments
On Thu, Aug 24, 2017 at 10:46:31AM +0300, Raslan Darawsheh wrote: > Added new capability to the list of rx offloads for hw timestamp > > The PMDs how expose this capability will always have it enabled. Not sure this comment is accurate, Rx offloads are application request, PMD does not have to enable it by default. > But, if the following API got accepted applications can choose > between disable/enable this API. > http://dpdk.org/dev/patchwork/patch/27470/ > > Signed-off-by: Raslan Darawsheh <rasland@mellanox.com> > --- > lib/librte_ether/rte_ethdev.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h > index 0adf327..cc5d281 100644 > --- a/lib/librte_ether/rte_ethdev.h > +++ b/lib/librte_ether/rte_ethdev.h > @@ -907,6 +907,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 puts raw timestamp in mbuf. */ > > /** > * TX offload capabilities of a device. > -- > 2.7.4
diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h index 0adf327..cc5d281 100644 --- a/lib/librte_ether/rte_ethdev.h +++ b/lib/librte_ether/rte_ethdev.h @@ -907,6 +907,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 puts raw timestamp in mbuf. */ /** * TX offload capabilities of a device.