Message ID | 1503560793-21597-2-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 F12D17D62; Thu, 24 Aug 2017 09:46:51 +0200 (CEST) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40054.outbound.protection.outlook.com [40.107.4.54]) by dpdk.org (Postfix) with ESMTP id 2CE937D3A for <dev@dpdk.org>; Thu, 24 Aug 2017 09:46:49 +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=L/EEXkHSelNwP6isHfItCAiaMVnnw+EC/Dw4aSxXdMk=; b=MSSnlAqs19QDK3nvlQRg9j1XxlcJJLWrXavPYJKeUV7VgkTQezu2VHq/Llvz5kKeJuOjpTPyxD4xlE/T3dbXTKO2RndHvmhrkpERKG74BMnruO0SGXdzkVMRvk0J5W6w+22o8bIFxPzZ1Rf76mgmkcP3lm/rbdRF5nK0FZqw8t4= 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:47 +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:32 +0300 Message-Id: <1503560793-21597-2-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: <1503409570-9946-3-git-send-email-rasland@mellanox.com> <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: 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: 059923d5-fddd-4e73-0bf0-08d4eac44667 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:33vm6aCe2NzHOual4k/aP48O2PAbgC1x1eYtOTVrBUgFMiVuhtMJXF8apVFUiFa45trfjlR3aGLVbakkiW3E3wQSO2ChtIkv8OWMnqexlxO8g71IRW62AvWAPv14zdTQCpF0yfPs3IbM4JLiuDD2AlI4/NXrvhb0hLugWvexYNFJQNAxPblF/a82ce6GYaZHkt4Tsn+cY/cNsJ6oECLXdCmjM9z0asgBhh2TKEzvnq1jdEDgUpUHxVi6An12zkW+; 25:xfwEJsPiPO7nmQGfBKTsrnNAOCq7yXBUMbw5yuwA+0c7Z2+BfPLn9/RyhIw3ivUgSXLyLWA4uNSp9qLuwZJ2kqllt9itRT1dILglrtH94Xro1KrVK5aUSS2ns2+SahqFr0PZp3TwKsH2jGfLRQOSx8An+I2mmKZov1smxlS2LEPPq0HyLMgdI64O7TLcFB0ZGcU9tFPTUa7sXy1YbC8bWTwDvxYb93G00QAQhmLnuM4xsUSEPdQUyWudBUfwApIAge64Lf7O4HQtOtyEYOONf2cUdz5tALkbmPTpLWI0OM1oY5ttiaHeXpVtEAP0aPHZTQO0j84rWPOuUbOEZdgkuw==; 31:XxqEXswm2GBQ5G0adpQPjLrnw3TkxuxEbIeYX9wiTlCjul3pcneLwOt1ayzHY0UdQ1ZXVxTJlzfh3DoDyCzFZvDmJkRBxx3CXyZObUW4ZdeKVM2L18mb6WWceEbav1QuipWaen/VEvTA7UpF9O8/0x2UbmPA2zwWmOAM/zy9GTtk5imdtYXTElwkiUGr1DjnrFo+oHZI0/TZbuMEk3uIQ3UPAVc4pPm7RAKXxNmSo58= X-MS-TrafficTypeDiagnostic: AM2PR05MB1218: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM2PR05MB1218; 20:UmyP4VN1A13OEHNN3uqfdMpeXe88TDWgB3jad30cmWfYKCtJCHNkQEiNPi6oG/9UxJL9SuaJ0pduqDwieVsVWzMyItoV3jrwW8e2M/xIXy+NHKQsaAgfFRhluoJ1780F8qnunpi8OMV14O1xYQDJftuEhI0qKPkl9N7x65Bl4TOczkon145u6YKcNZ02INPwmtqgzL/oCdSb+/6jDYCTg9Jb93x9EjWyyIl7bPsBn/MzKQks40pIp5DsTN87hJY7XTEyIEWW/rpkZ/Dmktk4W5OP8Zdj2EnPFFDz86iAM/0f0Jj6255eUXxpI4HEf3HqY4xDL/ItwGziZRI630UZEUxhz7dUfm5jX3YwLCoAWD9KWisMYHtwvjBaZdnXl+RO1Fb+1ernYnvYvV7+E6vEiR4MxUsPg12lKktQmdMpGkcB67c418W8C2uVODgODVkY4RZ9n8hMe+phOHu3qM+qRT9doUr2h9PJH5qSjVIttuLIgUe6y7nakoBS8oxLRUqU; 4:2U0tPfmd62Joj6LYDdZK0JAvgeRLUGKlDPlAzXwQ5gQylxPiLUTscj2k4BcEWT7agN6CNqWuZUmfbH581Bewn8kav/SsXhb6DqTg9j+UEbPHXyCjxk+2UOjslUuECtvpbSBSGd6NCNnEb85uqTE7R+xuiR4M0Fh8JW7JIMaS7tGZO24hUauqiC9kKYZSxidXGjNdd2lNa23XMiyXf1B56Vi3HGvXdOgc0i3Gbi5p1Px9DGRckFxHKAsR9aIWRCDQ X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: <AM2PR05MB12180946481B0F9AEE44662AC29A0@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)(6009001)(39860400002)(199003)(189002)(86362001)(68736007)(55016002)(3846002)(66066001)(21086003)(6116002)(478600001)(69596002)(47776003)(2906002)(7350300001)(6666003)(2950100002)(110136004)(36756003)(189998001)(48376002)(53936002)(76176999)(33026002)(5660300001)(305945005)(33646002)(50466002)(42186005)(8676002)(81156014)(105586002)(97736004)(81166006)(7736002)(25786009)(106356001)(101416001)(5003940100001)(50986999)(50226002)(129583001); 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-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR05MB1218; 23:B5p9L74zjc8ya7PBtLObg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hyP8H9LVm3KQthejh/Z/iSbHd0= X-Microsoft-Exchange-Diagnostics: 1; AM2PR05MB1218; 6:uKTmdbv60XuZ6X/4yjb6LkhUhz8Ry/4rYCTjBr3KBDRF+K/Z2AgV2tIzcT1d0EpPFQ4LdWypF2iRsq+wcDBIowsKUC8+w6SMMkNaPs+wSt1bLuuTur1VxegmW5bVDkRFXeirVLoYMPppTnh4QPWr4/uSXBeHnQ5zOdwqM8rIbBX4Zjg4Pprt9y+ykJ5cOeAHmpEcb4A6+N4iKi8w/O0xXYNzmtVSywdtqG6WhrD9NCHwund6pVZN8CCn1bSKscNTIpt6fpdLfrMmeVYm3g3BmNulrViNUw7PAEerpxc/sdE9rfcBn2j39rLXOnCbcHaPtYKpMblktElPLSyCV0LQ0Q==; 5:neQToE0/z33J/+AZe16isvPNtd8G5Jl2OcxCc5QUk0907u6BjK4duStfV4T8fqI3FjZvtlXmpoSoBwUcvKB0Mg+Q0j/BOmEmAk+BKlZVl5330wKbembZP9cCIlrrD5k8UieYsXRQm7vKBABehIYKhA==; 24:VXP1TJjMrfYgU60/SP2LWly4OWS7FzyAsLmwnf0cF7Sk2gDgimoc7nTRSb4vwS7nkQO7KWC/jp2ZFPP8nrQ8R4oSKQ59yuisgEX6IoW8WTo=; 7:S6NQgDelaY0KF1nTkk8QiBE76gHhQIuTMk6gdG+JhqmJWGcKc2A85IqfuM2v6xsn+gXwRlxYtPpz1CaG+lDTIsZZe3EAV3kJQ4h9WOKoPP7y/EPEXBsEJWsM0D3UatCAu9/5HVHVlWnHZPPNkYHpB7E9Q1syC/ogWFfybZzfIebhYl/BpH79fygHs+WxhlsO7d1Tm3RcybeZ0O8JHH//dT9KwNUqmadKFKLZnGCdOOc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Aug 2017 07:46:47.0011 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR05MB1218 Subject: [dpdk-dev] [PATCH v2 2/3] app/testpmd: add Rx timestamp in testpmd 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 | fail | Compilation issues |
ci/checkpatch | success | coding style OK |
Commit Message
Raslan Darawsheh
Aug. 24, 2017, 7:46 a.m. UTC
Added new print in case a PMD exposes Rx timestamp.
Also, added a print for timestamp value in rxonly mode
in case the packet was timestamped.
Signed-off-by: Raslan Darawsheh <rasland@mellanox.com>
---
app/test-pmd/config.c | 3 +++
app/test-pmd/rxonly.c | 2 ++
2 files changed, 5 insertions(+)
Comments
On Thu, Aug 24, 2017 at 10:46:32AM +0300, Raslan Darawsheh wrote: > Added new print in case a PMD exposes Rx timestamp. > Also, added a print for timestamp value in rxonly mode > in case the packet was timestamped. > > Signed-off-by: Raslan Darawsheh <rasland@mellanox.com> > --- > app/test-pmd/config.c | 3 +++ > app/test-pmd/rxonly.c | 2 ++ > 2 files changed, 5 insertions(+) > > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index 3ae3e1c..8a5da5d 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -598,6 +598,9 @@ port_offload_cap_display(portid_t port_id) > printf("off\n"); > } > > + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_TIMESTAMP) > + printf("HW timestamp: on\n"); > + > if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_QINQ_INSERT) { > printf("Double VLANs insert: "); > if (ports[port_id].tx_ol_flags & > diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c > index 5ef0219..f4d35d7 100644 > --- a/app/test-pmd/rxonly.c > +++ b/app/test-pmd/rxonly.c > @@ -158,6 +158,8 @@ pkt_burst_receive(struct fwd_stream *fs) > printf("hash=0x%x ID=0x%x ", > mb->hash.fdir.hash, mb->hash.fdir.id); > } > + if (ol_flags & PKT_RX_TIMESTAMP) > + printf(" - timestamp %lu ", mb->timestamp); > if (ol_flags & PKT_RX_VLAN_STRIPPED) > printf(" - VLAN tci=0x%x", mb->vlan_tci); > if (ol_flags & PKT_RX_QINQ_STRIPPED) > -- > 2.7.4 How can we enable this Rx offload? Thanks,
diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 3ae3e1c..8a5da5d 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -598,6 +598,9 @@ port_offload_cap_display(portid_t port_id) printf("off\n"); } + if (dev_info.rx_offload_capa & DEV_RX_OFFLOAD_TIMESTAMP) + printf("HW timestamp: on\n"); + if (dev_info.tx_offload_capa & DEV_TX_OFFLOAD_QINQ_INSERT) { printf("Double VLANs insert: "); if (ports[port_id].tx_ol_flags & diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c index 5ef0219..f4d35d7 100644 --- a/app/test-pmd/rxonly.c +++ b/app/test-pmd/rxonly.c @@ -158,6 +158,8 @@ pkt_burst_receive(struct fwd_stream *fs) printf("hash=0x%x ID=0x%x ", mb->hash.fdir.hash, mb->hash.fdir.id); } + if (ol_flags & PKT_RX_TIMESTAMP) + printf(" - timestamp %lu ", mb->timestamp); if (ol_flags & PKT_RX_VLAN_STRIPPED) printf(" - VLAN tci=0x%x", mb->vlan_tci); if (ol_flags & PKT_RX_QINQ_STRIPPED)