From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id BE7A77D14 for ; Thu, 24 Aug 2017 15:49:37 +0200 (CEST) Received: by mail-wm0-f46.google.com with SMTP id m207so5901822wma.1 for ; Thu, 24 Aug 2017 06:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=KItX9EcxbozubWBADc0ERi2FC0qPdGOzmdFCx3XuWkE=; b=fzu3YtW6aWtX1K0ilJZPBUBsEmarueSAdvnNSND83OIS+2jJ2O7czaKc33Zqqt9KR7 46cJWkWAwjneGJa6E+iAq7C3SCduNsmXA6FttV57cWFayNnWc3oJnrB+mGYTXXQ71Zz8 zyIoXerjFdKALodnnK8etdmHLh8YfeFCO+MYcIyFO2+zMz+xMTPdoUTH5GnQfTLsWAqB SWNGY7iWLLYN7mBdh/2lNcGMb038nwhN8Nilr0v7IznNyxuuavxk3b+PibzYrYKs8sBE csIaMVRVlAVaABAIEn3yFNlYhnYID0zPvDSOxKLy70RGebYRQx5JjCmAylnoYy7aiLRU YVyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=KItX9EcxbozubWBADc0ERi2FC0qPdGOzmdFCx3XuWkE=; b=d1mkT8n7MFFnINqgXg1X8DEs8n3p8N2CCIS+wxRQy8X7oTK47GYIpi9bRJ0WzkHs6Y KhRyoaBOqjFNMQfwSa4kX1VN/3abqnFBmEbIrVirpyJIWKHgtT3ZyZGmA82PtUBf9eH4 hjF5+4LMWa04DHukiC5EfEUciPIIWB+3MAnh0MczWS/0+/E1Bhw0b1HzDf/KqFECi7+A Gc/8By6+WqpTwK4oi17VtStMFedmJMBayZvfoV+ILMJqqVh3SXhMyGAzwJMm3ftrW4Bb sm9RCtPrCTvMkAy+JXDPTmISKrbShxYCNllRFGXNEUNK7wz5xCBwufECikOIwTzc6TWC 2quQ== X-Gm-Message-State: AHYfb5iHf1AK4wdoLH9C7DwmqQsEhk5i597vhxnoXRfgEjvdYtRLDwWG S1/2evTkQvF66B8o X-Received: by 10.28.52.207 with SMTP id b198mr3953469wma.31.1503582577479; Thu, 24 Aug 2017 06:49:37 -0700 (PDT) Received: from autoinstall.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 26sm4058251wrx.26.2017.08.24.06.49.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Aug 2017 06:49:37 -0700 (PDT) Date: Thu, 24 Aug 2017 15:49:28 +0200 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro To: Raslan Darawsheh Cc: thomas@monjalon.net, jingjing.wu@intel.com, dev@dpdk.org, adrien.mazarguil@6wind.com Message-ID: <20170824134928.GM4544@autoinstall.dev.6wind.com> References: <1503409570-9946-3-git-send-email-rasland@mellanox.com> <1503560793-21597-1-git-send-email-rasland@mellanox.com> <1503560793-21597-2-git-send-email-rasland@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1503560793-21597-2-git-send-email-rasland@mellanox.com> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2017 13:49:37 -0000 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 > --- > 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, -- Nélio Laranjeiro 6WIND