From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ferruh Yigit Subject: Re: [PATCH v3] ethdev: add new offload flag to keep CRC Date: Fri, 29 Jun 2018 17:33:11 +0100 Message-ID: <4a5c7bef-e776-a810-a58a-266a6362abdd@intel.com> References: <20180621131500.22460-1-ferruh.yigit@intel.com> <20180629124113.65856-1-ferruh.yigit@intel.com> <306055545.4tjrTrjsPy@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Neil Horman , John McNamara , Marko Kovacevic , "John W. Linville" , Allain Legacy , Matt Peters , Ravi Kumar , Ajit Khaparde , Somnath Kotur , Rahul Lakkireddy , Wenzhuo Lu , Qi Zhang , Xiao Wang , Beilei Xing , Konstantin Ananyev , Adrien Mazarguil , Nelio Laranjeiro , Yongseok Koh , Tomasz Duszynski , Dmitri Epshtein , Natalie Samsonov , Jianbo To: Thomas Monjalon Return-path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 6A1781B5E0 for ; Fri, 29 Jun 2018 18:33:21 +0200 (CEST) In-Reply-To: <306055545.4tjrTrjsPy@xps> 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/29/2018 12:57 PM, Thomas Monjalon wrote: > 29/06/2018 14:41, Ferruh Yigit: >> DEV_RX_OFFLOAD_KEEP_CRC offload flag is added. PMDs that support >> keeping CRC should advertise this offload capability. >> >> DEV_RX_OFFLOAD_CRC_STRIP flag will remain one more release >> default behavior in PMDs are 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 >> - 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 >> >> A helper function rte_eth_dev_is_keep_crc() has been added to be able to >> change the no flag behavior with minimal changes in PMDs. >> >> The PMDs that doesn't report the DEV_RX_OFFLOAD_KEEP_CRC offload can >> remove rte_eth_dev_is_keep_crc() checks next release, related code >> commented to help the maintenance task. >> >> And DEV_RX_OFFLOAD_CRC_STRIP has been added to virtual drivers since >> they don't use CRC at all, when an application requires this offload >> virtual PMDs should not return error. >> >> Signed-off-by: Ferruh Yigit >> Acked-by: Allain Legacy >> Acked-by: Andrew Rybchenko > > Acked-by: Thomas Monjalon Applied to dpdk-next-net/master, thanks.