From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Rybchenko Subject: Re: [PATCH v5 1/3] ethdev: add Rx HW timestamp capability Date: Tue, 3 Oct 2017 10:24:55 +0300 Message-ID: <61862f56-212c-4e7d-e38f-c3ecfcc1644a@solarflare.com> References: <1506617303-32509-1-git-send-email-rasland@mellanox.com> <1507012430-8421-1-git-send-email-rasland@mellanox.com> <18261cc6-ada3-59de-c200-91ea80dcf7fd@solarflare.com> <2260C792-E8AD-4CDE-81E5-7B607ECA9FE5@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: Raslan Darawsheh , "dev@dpdk.org" , Shahaf Shuler , "ferruh.yigit@intel.com" To: Yongseok Koh Return-path: Received: from dispatch1-us1.ppe-hosted.com (dispatch1-us1.ppe-hosted.com [67.231.154.164]) by dpdk.org (Postfix) with ESMTP id D243D1B2D0 for ; Tue, 3 Oct 2017 09:25:06 +0200 (CEST) In-Reply-To: <2260C792-E8AD-4CDE-81E5-7B607ECA9FE5@mellanox.com> Content-Language: en-GB List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 10/03/2017 09:53 AM, Yongseok Koh wrote: >> On Oct 2, 2017, at 11:40 PM, Andrew Rybchenko wrote: >> >> On 10/03/2017 09:33 AM, Raslan Darawsheh wrote: >>> Add a new offload capability flag for Rx HW >>> timestamp and enabling/disabling this via rte_eth_rxmode. >>> >>> Signed-off-by: Raslan Darawsheh >>> >>> >>> --- >>> This patch should be applied after after this series: >>> >>> http://dpdk.org/dev/patchwork/patch/29368/ >>> >>> --- >>> doc/guides/nics/features.rst | 11 +++++++++++ >>> lib/librte_ether/rte_ethdev.c | 6 ++++++ >>> lib/librte_ether/rte_ethdev.h | 5 ++++- >>> 3 files changed, 21 insertions(+), 1 deletion(-) >>> >> <...> >> >>> diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h >>> index ffd2ee5..bd63730 100644 >>> --- a/lib/librte_ether/rte_ethdev.h >>> +++ b/lib/librte_ether/rte_ethdev.h >>> @@ -368,7 +368,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 */ >>> >> The code is definitely not rebased on top of a new Rx offload API patch which adds >> ignore_offload_bitfield : 1; >> exactly in this place. > Hi Andrew, > Did you check Shahaf's email regarding this? Looks like Shahaf suggests keeping it as is for now. Yes. But it simply fails to apply on top a new Rx offload API patch. Above you say that it should be applied after that series. >> On Sep 30, 2017, at 11:44 PM, Shahaf Shuler wrote: >>> [1] http://dpdk.org/ml/archives/dev/2017-September/076872.html >> >> 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. > > Thanks, > Yongseok >