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 5C541A09E4; Fri, 29 Jan 2021 15:47:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 41CDF4067C; Fri, 29 Jan 2021 15:47:48 +0100 (CET) Received: from inbox.dpdk.org (xvm-172-178.dc0.ghst.net [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 11AEF40395 for ; Fri, 29 Jan 2021 15:47:47 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id F06AAA0A0B; Fri, 29 Jan 2021 15:47:46 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Fri, 29 Jan 2021 14:47:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: ethdev X-Bugzilla-Version: 20.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pvalerio@redhat.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 629] ixgbe: 82599 chksum rx offload marks UDP packets over IPv4 with zero checksum as CKSUM_BAD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D629 Bug ID: 629 Summary: ixgbe: 82599 chksum rx offload marks UDP packets over IPv4 with zero checksum as CKSUM_BAD Product: DPDK Version: 20.11 Hardware: All OS: All Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: pvalerio@redhat.com Target Milestone: --- on ixgbe (in particular on 82599 hw) when receiving UDP packets with zero checksum (no checksum) over IPv4, ol_flags PKT_RX_L4_CKSUM_BAD bit is set, whereas PKT_RX_L4_CKSUM_GOOD was expected instead. That happens because of a hardware errata [1], but still, needs to be handl= ed because applications like for example, OvS are in turn affected by this issue. This behavior can be easily reproduced using testpmd with --enable-rx-cksum option. # lshw -businfo -c network Bus info Device Class Description =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D pci@0000:01:00.0 em1 network 82599ES 10-Gigabit SFI/SFP+ Net= work Connection pci@0000:01:00.1 em2 network 82599ES 10-Gigabit SFI/SFP+ Net= work Connection testpmd -l 2,4 -w 0000:01:00.0 -- -i --port-topology=3Dchained --enable-rx-= cksum testpmd> show device info all ********************* Infos for device 0000:01:00.0 ********************* Bus name: pci Driver name: net_ixgbe Devargs:=20 Connect to socket: 0 Port id: 0=20 MAC address: EC:F4:BB:DB:FC:18 Device name: 0000:01:00.0 Device speed capability: 1 Gbps 10 Gbps testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start and sending packets from a tester machine using scapy (w/ zero checksum): sendp(Ether(src=3D"ec:f4:bb:dc:09:d0",dst=3D"ec:f4:bb:db:fc:18")/IP(src=3D"= 192.168.30.200", dst=3D"192.168.30.100")/UDP(chksum=3D0)/Raw("a"*100), iface=3D"em1") the results is: port 0/queue 0: received 1 packets src=3DEC:F4:BB:DC:09:D0 - dst=3DEC:F4:BB:DB:FC:18 - type=3D0x0800 - lengt= h=3D142 - nb_segs=3D1 - hw ptype: L2_ETHER L3_IPV4 L4_UDP - sw ptype: L2_ETHER L3_IP= V4 L4_UDP - l2_len=3D14 - l3_len=3D20 - l4_len=3D8 - Receive queue=3D0x0 ol_flags: PKT_RX_L4_CKSUM_BAD PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER_L4_CKSUM_UNKNOWN [1] https://patchwork.ozlabs.org/project/netdev/patch/20090724040031.30202.1531= .stgit@localhost.localdomain/ --=20 You are receiving this mail because: You are the assignee for the bug.=