From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 18F11C05027 for ; Thu, 26 Jan 2023 06:54:53 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D804A40697; Thu, 26 Jan 2023 07:54:52 +0100 (CET) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 60840400D7 for ; Thu, 26 Jan 2023 07:54:51 +0100 (CET) Received: by inbox.dpdk.org (Postfix, from userid 33) id 452CF4248E; Thu, 26 Jan 2023 07:54:51 +0100 (CET) From: bugzilla@dpdk.org To: dev@dpdk.org Subject: [Bug 1158] Mac address configuration on bonded device in 8023ad mode is not propagated to slave devices Date: Thu, 26 Jan 2023 06:54:51 +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: 22.11 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: kuka@cesnet.cz 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: multipart/alternative; boundary=16747160910.C82B12E0e.3255511 Content-Transfer-Encoding: 7bit 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 --16747160910.C82B12E0e.3255511 Date: Thu, 26 Jan 2023 07:54:51 +0100 MIME-Version: 1.0 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 https://bugs.dpdk.org/show_bug.cgi?id=3D1158 Bug ID: 1158 Summary: Mac address configuration on bonded device in 8023ad mode is not propagated to slave devices Product: DPDK Version: 22.11 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: ethdev Assignee: dev@dpdk.org Reporter: kuka@cesnet.cz Target Milestone: --- When you try to change the default mac address on a bonded device=20 in 8023ad mode, the new mac address is not propagated to slave devices=20 so packets with this new mac address are not delivered because they are=20 dropped on the slave device. Steps to Reproduce in testpmd:=20 dpdk-testpmd --log-level=3Dpmd.net.bonding:debug -a 0000:3b:00.0 -c 0x0f = -n 4 --vdev 'net_bonding0,slave=3D0000:3b:00.0,mode=3D4,agg_mode=3Dcount' -- -i --port-topology=3Dchained testpmd> port stop all testpmd> show bonding config 1 testpmd> set promisc 1 off testpmd> port start all testpmd> show port info 0 ********************* Infos for port 0 ********************* MAC address: 04:3F:72:C7:B8:84 ... testpmd> show port info 1 ********************* Infos for port 1 ********************* MAC address: 04:3F:72:C7:B8:84 ... testpmd> port stop all testpmd> set bonding mac_addr 1 00:11:22:33:44:55 testpmd> port start all testpmd> show port info 0 ********************* Infos for port 0 ********************* MAC address: 04:3F:72:C7:B8:84 ... testpmd> show port info 1 ********************* Infos for port 1 ********************* MAC address: 00:11:22:33:44:55 ... For comparison, the same steps for the bonded device in mode 0 (round-robin= ):=20 dpdk-testpmd --log-level=3Dpmd.net.bonding:debug -a 0000:3b:00.1 -c 0x0f = -n 4 --vdev 'net_bonding0,slave=3D0000:3b:00.1,mode=3D0' -- -i --port-topology= =3Dchained testpmd> port stop all testpmd> show bonding config 1 testpmd> set promisc 1 off testpmd> port start all testpmd> show port info 0 ********************* Infos for port 0 ********************* MAC address: 04:3F:72:C7:B8:85 ... testpmd> show port info 1 ********************* Infos for port 1 ********************* MAC address: 04:3F:72:C7:B8:85 ... testpmd> port stop all testpmd> set bonding mac_addr 00:11:22:33:44:55 testpmd> port start all testpmd> show port info 0 ********************* Infos for port 0 ********************* MAC address: 00:11:22:33:44:55 ... testpmd> show port info 1 ********************* Infos for port 1 ********************* MAC address: 00:11:22:33:44:55 ... For comparison, configuring a bond device in 802.3ad mode using NMCLI: sudo nmcli connection add type bond con-name bond0 ifname bond0 bond.opti= ons "mode=3D802.3ad" sudo nmcli connection modify bond0 ipv4.dhcp-timeout infinity sudo nmcli connection add type ethernet slave-type bond con-name bond0-po= rt1 ifname ens1f0np0 master bond0 sudo ip address show bond0 11: bond0: mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 04:3f:72:c7:b8:84 brd ff:ff:ff:ff:ff:ff ... sudo ip link show ens1f0np0 6: ens1f0np0: mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000 link/ether 04:3f:72:c7:b8:84 brd ff:ff:ff:ff:ff:ff ... sudo ip link set dev bond0 address 00:11:22:33:44:55 sudo ip link show bond0 11: bond0: mtu 1500 qdisc noqueue state UP mode DEFAULT group default qlen 1000 link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff ... sudo ip link show ens1f0np0 6: ens1f0np0: mtu 1500 qdisc mq master bond0 state UP mode DEFAULT group default qlen 1000 link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff permaddr 04:3f:72:c7:b8:84 ... [DPDK version] commit f262f16087ea6a77357a915cf4c0d10ddc7b6562 (HEAD, tag: v22.11, origin/releases) Author: Thomas Monjalon Date: Sun Nov 27 11:36:36 2022 +0100 version: 22.11.0 Signed-off-by: Thomas Monjalon [OS version] Operating System: Oracle Linux Server 8.7 Kernel: Linux 4.18.0-348.12.2.el8_5.x86_64 Architecture: x86-64 [Network devices] 0000:3b:00.0 'MT2892 Family [ConnectX-6 Dx] 101d' if=3Dens1f0np0 drv=3Dmlx5= _core (802.3ad with LACP) 0000:3b:00.1 'MT2892 Family [ConnectX-6 Dx] 101d' if=3Dens1f1np1 drv=3Dmlx5= _core --=20 You are receiving this mail because: You are the assignee for the bug.= --16747160910.C82B12E0e.3255511 Date: Thu, 26 Jan 2023 07:54:51 +0100 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All
Bug ID 1158
Summary Mac address configuration on bonded device in 8023ad mode is = not propagated to slave devices
Product DPDK
Version 22.11
Hardware x86
OS Linux
Status UNCONFIRMED
Severity normal
Priority Normal
Component ethdev
Assignee dev@dpdk.org
Reporter kuka@cesnet.cz
Target Milestone ---

When you try to change the default=
 mac address on a bonded device=20
in 8023ad mode, the new mac address is not propagated to slave devices=20
so packets with this new mac address are not delivered because they are=20
dropped on the slave device.

Steps to Reproduce in testpmd:=20
  dpdk-testpmd --log-level=3Dpmd.net.bonding:debug -a 0000:3b:00.0 -c 0x0f =
-n 4
--vdev 'net_bonding0,slave=3D0000:3b:00.0,mode=3D4,agg_mode=3Dcount' -- -i
--port-topology=3Dchained
  testpmd> port stop all
  testpmd> show bonding config 1
  testpmd> set promisc 1 off
  testpmd> port start all
  testpmd> show port info 0
  ********************* Infos for port 0  *********************
  MAC address: 04:3F:72:C7:B8:84
  ...
  testpmd> show port info 1
  ********************* Infos for port 1  *********************
  MAC address: 04:3F:72:C7:B8:84
  ...
  testpmd> port stop all
  testpmd> set bonding mac_addr 1 00:11:22:33:44:55
  testpmd> port start all
  testpmd> show port info 0
  ********************* Infos for port 0  *********************
  MAC address: 04:3F:72:C7:B8:84
  ...
  testpmd> show port info 1
  ********************* Infos for port 1  *********************
  MAC address: 00:11:22:33:44:55
  ...


For comparison, the same steps for the bonded device in mode 0 (round-robin=
):=20
  dpdk-testpmd --log-level=3Dpmd.net.bonding:debug -a 0000:3b:00.1 -c 0x0f =
-n 4
--vdev 'net_bonding0,slave=3D0000:3b:00.1,mode=3D0' -- -i --port-topology=
=3Dchained
  testpmd> port stop all
  testpmd> show bonding config 1
  testpmd> set promisc 1 off
  testpmd> port start all
  testpmd> show port info 0
  ********************* Infos for port 0  *********************
  MAC address: 04:3F:72:C7:B8:85
  ...
  testpmd> show port info 1
  ********************* Infos for port 1  *********************
  MAC address: 04:3F:72:C7:B8:85
  ...
  testpmd> port stop all
  testpmd> set bonding mac_addr 00:11:22:33:44:55
  testpmd> port start all
  testpmd> show port info 0
  ********************* Infos for port 0  *********************
  MAC address: 00:11:22:33:44:55
  ...
  testpmd> show port info 1
  ********************* Infos for port 1  *********************
  MAC address: 00:11:22:33:44:55
  ...

For comparison, configuring a bond device in 802.3ad mode using NMCLI:
  sudo nmcli connection add type bond con-name bond0 ifname bond0 bond.opti=
ons
"mode=3D802.3ad"
  sudo nmcli connection modify bond0 ipv4.dhcp-timeout infinity
  sudo nmcli connection add type ethernet slave-type bond con-name bond0-po=
rt1
ifname ens1f0np0 master bond0
  sudo ip address show bond0
  11: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc =
noqueue
state UP group default qlen 1000
      link/ether 04:3f:72:c7:b8:84 brd ff:ff:ff:ff:ff:ff
          ...
  sudo ip link show ens1f0np0
  6: ens1f0np0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdis=
c mq
master bond0 state UP mode DEFAULT group default qlen 1000
      link/ether 04:3f:72:c7:b8:84 brd ff:ff:ff:ff:ff:ff
          ...
  sudo ip link set dev bond0 address 00:11:22:33:44:55
  sudo ip link show bond0
  11: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc =
noqueue
state UP mode DEFAULT group default qlen 1000
      link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff
          ...
  sudo ip link show ens1f0np0
  6: ens1f0np0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdis=
c mq
master bond0 state UP mode DEFAULT group default qlen 1000
      link/ether 00:11:22:33:44:55 brd ff:ff:ff:ff:ff:ff permaddr
04:3f:72:c7:b8:84
          ...

[DPDK version]
commit f262f16087ea6a77357a915cf4c0d10ddc7b6562 (HEAD, tag: v22.11,
origin/releases)
Author: Thomas Monjalon <thom=
as@monjalon.net>
Date:   Sun Nov 27 11:36:36 2022 +0100

    version: 22.11.0

    Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

[OS version]
Operating System: Oracle Linux Server 8.7
Kernel: Linux 4.18.0-348.12.2.el8_5.x86_64
Architecture: x86-64

[Network devices]
0000:3b:00.0 'MT2892 Family [ConnectX-6 Dx] 101d' if=3Dens1f0np0 drv=3Dmlx5=
_core
(802.3ad with LACP)
0000:3b:00.1 'MT2892 Family [ConnectX-6 Dx] 101d' if=3Dens1f1np1 drv=3Dmlx5=
_core
          


You are receiving this mail because:
  • You are the assignee for the bug.
=20=20=20=20=20=20=20=20=20=20
= --16747160910.C82B12E0e.3255511--