From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] net/tap: add CRC stripping capability Date: Fri, 16 Feb 2018 14:00:21 +0100 Message-ID: <14471929.PddjlPaB1B@xps> References: <1518509665-12171-1-git-send-email-ophirmu@mellanox.com> <4788233.rokdTfvtAd@xps> <20180215135558.78f2e0ca@xeon-e3> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: Ophir Munk , dev@dpdk.org, Pascal Mazon , Olga Shern To: Stephen Hemminger Return-path: Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by dpdk.org (Postfix) with ESMTP id F12111B1C8 for ; Fri, 16 Feb 2018 14:00:37 +0100 (CET) In-Reply-To: <20180215135558.78f2e0ca@xeon-e3> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 15/02/2018 22:55, Stephen Hemminger: > On Tue, 13 Feb 2018 17:35:20 +0100 > Thomas Monjalon wrote: > > > 13/02/2018 09:14, Ophir Munk: > > > CRC stripping is executed in the kernel outside of TAP PMD scope. > > > There is no prevention that the TAP PMD will report on Rx CRC > > > stripping capability. > > > In the corrupted code, TAP PMD did not report on this capability. > > > The fix enables TAP PMD to report that Rx CRC stripping is supported. > > > > > > Fixes: 02f96a0a82d1 ("net/tap: add TUN/TAP device PMD") > > > Cc: stable@dpdk.org > > > > > > Signed-off-by: Ophir Munk > > > > Applied, thanks > > > > The whole CRC strip flag notion is backwards. It really should of been > a bit set if driver allows preserving CRC. > > Since changing the ABI is not possible right now; > the ethdev core ought to log a warning whenever driver is registered > without CRC_STRIP flag. > > Or is lack of CRC_STRIP in offload flags implying that driver can > do strip and not stripping? I agree we should change the API. Let's open a new thread to discuss it with a wider audience.