From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH v2] net/tap: add CRC stripping capability Date: Thu, 15 Feb 2018 13:55:58 -0800 Message-ID: <20180215135558.78f2e0ca@xeon-e3> References: <1518509665-12171-1-git-send-email-ophirmu@mellanox.com> <4788233.rokdTfvtAd@xps> 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 , stable@dpdk.org To: Thomas Monjalon Return-path: Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by dpdk.org (Postfix) with ESMTP id 31F551B1BD for ; Thu, 15 Feb 2018 22:56:03 +0100 (CET) Received: by mail-pg0-f67.google.com with SMTP id m19so863034pgn.1 for ; Thu, 15 Feb 2018 13:56:03 -0800 (PST) In-Reply-To: <4788233.rokdTfvtAd@xps> 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 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?