From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 1B5C0A0C40 for ; Tue, 8 Jun 2021 17:23:38 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9983340689; Tue, 8 Jun 2021 17:23:37 +0200 (CEST) Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by mails.dpdk.org (Postfix) with ESMTP id 777B54067A for ; Tue, 8 Jun 2021 17:23:35 +0200 (CEST) Received: by mail-pl1-f179.google.com with SMTP id b12so4836894plg.11 for ; Tue, 08 Jun 2021 08:23:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0xHCgk6eHzJlEz3WmCy2uigEmjWeN89HtODiWAKhZcw=; b=DXPqT5bCH8HfQdxX3zYghlQ6ZTgtV7uHitFNc/JSIhKuAPu/irmMW9WCufROL+rBJM pMfSWTYggK1/S2+uaSHOlwv3nxk7N3z8p1u6h88YoAbJsS0xA6XVGL8/9G3jYZjE7LPx Ak2WThRJMVrHEK3b/v4+fkjQbzbe+GnSIfwsmxx3SBgV0kOCj9hm8KX8YXaq3CcG0w4c MWEmhV+QDku6+WAkgqPY6KZcLGMUBMjBKCseGEqgIs3APaOXRffndOmfykqd+1nkh+Jp fA4ZMt1URqETxU0Obhh3CIXgeLJpe7TCe71HqRZwmT7JHCsjhe1h4RgYZMTkAG9iJl7t rzPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0xHCgk6eHzJlEz3WmCy2uigEmjWeN89HtODiWAKhZcw=; b=Dlirm9BK63XkKaYCNSg1efbWYBBRNIDjCWqaSBjm+23ofn6AuatKUPOzUIZAHGxR8G A1F2t/kkSGSFz0rlBUW+gzH9j1U//vOMTWeb7VMzncE4XyeeKjufON0PJNuYVahkR77o DoAPU7XPx/fRh5C5UE2dPBmoHDTyioVwY9zN9TA7VxWqp2dhFVcRBJ941nUKt4N58h9H MBTtuCUfwcr+1bnfZDDdCvKl/RWR7Ct3mucM75zH2TkZ40QPF2k7ZlTNg+TGCSsdk5/3 /jrnhuZhWGRLD0H8kGawnHI4JgDrrpnvRkmTIAId2Gcjupz0DtBS+mPVygO/SzhcezNP xPyw== X-Gm-Message-State: AOAM532FNMhpmEQ3eVSi8L4Pu9ZHnVi77yhNz28NwF37nfQvcHFJOl/J YB0dZ3v/aQMYSpydTtQI/TXFJgvX2r8+Elix X-Google-Smtp-Source: ABdhPJxkbTcxQdX7a5ixAw7X7Dr2X1+zUFQGmkUQoz8dTyRgU/J5LpqufUx00ePPblFJE3Y9rHbbUA== X-Received: by 2002:a17:90a:1150:: with SMTP id d16mr26781744pje.180.1623165814493; Tue, 08 Jun 2021 08:23:34 -0700 (PDT) Received: from hermes.local (76-14-218-44.or.wavecable.com. [76.14.218.44]) by smtp.gmail.com with ESMTPSA id y34sm9109450pfa.181.2021.06.08.08.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Jun 2021 08:23:34 -0700 (PDT) Date: Tue, 8 Jun 2021 08:23:26 -0700 From: Stephen Hemminger To: "JieSong" Cc: "Ido Goshen" , "users@dpdk.org" Message-ID: <20210608082326.66e83722@hermes.local> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [dpdk-users] Is it possible to receive packets with bad CRC? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" On Tue, 8 Jun 2021 11:44:10 +0800 "JieSong" wrote: > Hi Ido, >     I have the same question as yours, I want to get all the pa= ckets even the CRC/FCS error packet. >     Without DPDK I set the nic with "ethtool -K rx-all on", The= n i can tcpdump all the packets both good and error packets. >     But I have no ideal with DPDK. Did you find something for t= his question?  >=20 >=20 > Thanks >=20 >=20 > Jie >=20 >=20 >=20 >   >   >   > ------------------ Original ------------------ > From:  "Ido Goshen" Date:  Mon, Dec 14, 2020 00:56 AM > To:  "users@dpdk.org"=20 > Subject:  [dpdk-users] Is it possible to receive packets with bad CR= C? >=20 >   >=20 > Hi >=20 > By default bad CRC packets are dropped and raise the ierror counter. >=20 > Is there a way to change this behavior for I350 (igb) and rx it by the ap= p? >=20 > I=E2=80=99ve tried setting DEV_RX_OFFLOAD_KEEP_CRC but this doesn=E2=80= =99t help (I think this only keeps CRC for good packets) > I=E2=80=99ve also tried enabling the Store Bad Packet (not sure what it d= oes but it=E2=80=99s the closet I could find) by setting in e1000/igb_rxtx.c > rctl |=3D E1000_RCTL_SBP;  E1000_WRITE_REG(hw, E1000_RCTL, rctl); > Didn=E2=80=99t help either. >=20 > Is it possible to do with I350? > Or with any of the other intel NICs? X522 (ixgbe) or X710 (i40e)? >=20 > Thanx, >=20 >   *   Ido Please don't use HTML mail on the DPDK mailing list. The DPDK ethdev API does not have a way to enable storing bad packets. The DPDK ixgbe driver has a device specific API call rte_pmd_ixgbe_udp_fctr= l_sbp which may do what you want. Device specific API's are discouraged but possible.