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 92A0AA0C43; Fri, 26 Nov 2021 13:52:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5FFC540C35; Fri, 26 Nov 2021 13:52:53 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 3D3C0406FF for ; Fri, 26 Nov 2021 13:52:52 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 28810A0C4D; Fri, 26 Nov 2021 13:52:52 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 891] bnxt PMD: multicast filtering fails Date: Fri, 26 Nov 2021 12:52:52 +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: siwar.zitouni@6wind.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 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 https://bugs.dpdk.org/show_bug.cgi?id=3D891 Bug ID: 891 Summary: bnxt PMD: multicast filtering fails Product: DPDK Version: 20.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: siwar.zitouni@6wind.com Target Milestone: --- On Broadcom bnxt PF, multicast packets reception is successful only if the multicast mac address of the packets is the first one in the multicast addr= ess list of the port. test: using Testpmd and DPDK version: 20.11.3 *** Test configuration *** 1/ Bind the device to the kernel modules vfio-pci=20 ./dpdk-devbind.py -b vfio-pci 0000:08:00.1 ./dpdk-devbind.py -b vfio-pci 0000:08:00.0 2/Launch the app testpmd with the following arguments: ./dpdk-testpmd --log-level=3Dpmd.net.bnxt.driver:8 -l 1,2 -a 0000:08:00.0 -a 0000:08:00.1 -- -i --rxq=3D1 --txq=3D1 --coremask=3D0x04 --total-num-mbufs= =3D250000 testpmd> set fwd rxonly testpmd> set verbose 1 testpmd> start testpmd> set promisc all off testpmd> set allmulti all off *** Test steps *** 1/ step 1:=20=20=20 ** check multicast address list of the ports testpmd> show port 1 mcast_macs=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Number of Multicast MAC address added: 0 testpmd> show port 0 mcast_macs=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Number of Multicast MAC address added: 0 ** Configure multicast address: testpmd> mcast_addr add 1 33:33:00:10:00:01=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 testpmd> show port 1 mcast_macs=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Number of Multicast MAC address added: 1 33:33:00:10:00:01 ** From a second machine: send the following packet using scapy: scapy file: p =3D Ether(dst=3D'33:33:00:10:00:01', src=3D'ec:0d:9a:37:d1:7b')/IPv6(nh= =3D59, src=3D'fd00:200::2', dst=3D'ff05::10:10:2')/Raw(load=3Db'kqi1Br') sendp(p, iface=3D'ntfp2', count=3D5, inter=3D0.5) ** Result: testpmd> port 1/queue 0: received 1 packets src=3DEC:0D:9A:37:D1:7B - dst=3D33:33:00:10:00:01 - type=3D0x86dd - lengt h=3D60 - nb_segs=3D1 - hw ptype: L2_ETHER L3_IPV6_EXT_UNKNOWN - sw ptype : L2_ETHER L3_IPV6 - l2_len=3D14 - l3_len=3D40 - Receive queue=3D0x0=20=20= =20=20=20=20 ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER _L4_CKSUM_UNKNOWN=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20 port 1/queue 0: received 1 packets=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 src=3DEC:0D:9A:37:D1:7B - dst=3D33:33:00:10:00:01 - type=3D0x86dd - lengt h=3D60 - nb_segs=3D1 - hw ptype: L2_ETHER L3_IPV6_EXT_UNKNOWN - sw ptype : L2_ETHER L3_IPV6 - l2_len=3D14 - l3_len=3D40 - Receive queue=3D0x0=20=20= =20=20=20=20 ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER _L4_CKSUM_UNKNOWN=20=20 =3D=3D> All packets are received on the main machine: Test is successful=20 PS: ec:0d:9a:37:d1:7 : mac address of the second machine port ntfp2 2/ step 2 : Add more multicast addresses to port 1 (maintain 33:33:00:10:00= :01 in the first position of the list) and send the same packets again: testpmd> show port 1 mcast_macs=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Number of Multicast MAC address added: 5 33:33:00:10:00:01 33:33:00:10:00:02 33:33:00:10:00:03 33:33:00:10:00:04 33:33:00:10:00:05 ** Result: testpmd> port 1/queue 0: received 1 packets src=3DEC:0D:9A:37:D1:7B - dst=3D33:33:00:10:00:01 - type=3D0x86dd - lengt h=3D60 - nb_segs=3D1 - hw ptype: L2_ETHER L3_IPV6_EXT_UNKNOWN - sw ptype : L2_ETHER L3_IPV6 - l2_len=3D14 - l3_len=3D40 - Receive queue=3D0x0=20=20= =20=20=20=20 ol_flags: PKT_RX_L4_CKSUM_UNKNOWN PKT_RX_IP_CKSUM_GOOD PKT_RX_OUTER _L4_CKSUM_UNKNOWN=20=20=20=20=20=20 =3D=3D> All packets are received on the main machine: Test is successful=20 3/ step 3: Change the order of multicast addresses & resend the same packets testpmd> mcast_addr remove 1 33:33:00:10:00:01=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 testpmd> show port 1 mcast_macs=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Number of Multicast MAC address added: 4 33:33:00:10:00:02 33:33:00:10:00:03 33:33:00:10:00:04 33:33:00:10:00:05 testpmd> mcast_addr add 1 33:33:00:10:00:01=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 testpmd> show port 1 mcast_macs=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 Number of Multicast MAC address added: 5 33:33:00:10:00:02 33:33:00:10:00:03 33:33:00:10:00:04 33:33:00:10:00:05 33:33:00:10:00:01 ** Result: testpmd>=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 =3D=3D> No packet is received: Test fails. FYI: The same test was applied using dpdk version 21.11 git link: https://github.com/DPDK/dpdk branch: main commit: 779279afa579570f4e62b708895fa52de1bee471 latest tag : v21.11-rc4 =3D> the test shows the same results --=20 You are receiving this mail because: You are the assignee for the bug.=