From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [RFC] ethdev: add new offload flag to keep CRC Date: Mon, 11 Jun 2018 10:18:18 +0100 Message-ID: References: <20180608225709.19473-1-ferruh.yigit@intel.com> <75ca3e7f-9241-309f-c2ce-5c01f65bfdf9@solarflare.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org To: Andrew Rybchenko , Neil Horman , John McNamara , Marko Kovacevic , Thomas Monjalon Return-path: Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id D16061E875 for ; Mon, 11 Jun 2018 11:18:21 +0200 (CEST) In-Reply-To: <75ca3e7f-9241-309f-c2ce-5c01f65bfdf9@solarflare.com> Content-Language: en-US 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 6/9/2018 11:11 AM, Andrew Rybchenko wrote: > On 06/09/2018 01:57 AM, Ferruh Yigit wrote: >> DEV_RX_OFFLOAD_KEEP_CRC offload flag added. >> >> DEV_RX_OFFLOAD_CRC_STRIP flag will remain one more release >> default behavior in PMDs is to keep the CRC until this flag removed >> >> Until DEV_RX_OFFLOAD_CRC_STRIP flag is removed: >> - Setting both KEEP_CRC & CRC_STRIP is INVALID > > ethdev layer should enforce it. OK, will add this check. > >> - Setting only CRC_STRIP PMD should strip the CRC >> - Setting only KEEP_CRC PMD should keep the CRC >> - Not setting both PMD should keep the CRC >> >> Signed-off-by: Ferruh Yigit > > - rte_rx_offload_names should be updated as well > - testpmd should be updated > > I'm not sure that I understand the transition plan. I think PMDs which support > KEEP_CRC should be updated by the patch to advertise the offload. Otherwise, > generic checks in ethdev will not allow to enable it. Right, PMDs should be updated to advertise this offload, will do it. > Other option is to simply > drop it on ethdev layer (since basically it changes nothing for PMD now) and > encourage PMD maintainers to advertise and take it into account if the feature > is supported (however, if the bit is dropped on ethdev layer, the code would > be unused/dead regardless application request). Too complicated. I guess > there are not so many PMDs which support KEEP_CRC. Better to update them > The patch should encourage applications which would like to keep CRC to > use the offload since the next release will drop CRC_STRIP and it will > change behaviour (no KEEP_CRC => strip it) +1, will check apps.