]> git.droids-corp.org - dpdk.git/commit
net/bonding: fix promiscuous and allmulticast state
authorMin Hu (Connor) <humin29@huawei.com>
Fri, 28 Jan 2022 02:25:32 +0000 (10:25 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jan 2022 14:16:22 +0000 (15:16 +0100)
commitac5341f5f9bab7b87b1a71761c40d204a7e6ab86
treea0f991b35e5d2ef35371883b9a647198a55f2bdf
parent8c1e5c658c24553d5f813adc8afed8910e6f5194
net/bonding: fix promiscuous and allmulticast state

Currently, promiscuous or allmulticast state of bonding port will not be
passed to the new primary slave when active/standby switch-over. It
causes bugs in some scenario.

For example, promiscuous state of bonding port is off now, primary slave
(called A) is off but secondary slave(called B) is on.
Then active/standby switch-over, promiscuous state of the bonding port
is off, but the new primary slave turns to be B and its promiscuous
state is still on.
It is not consistent with bonding port. And this patch will fix it.

Fixes: 2efb58cbab6e ("bond: new link bonding library")
Fixes: 68218b87c184 ("net/bonding: prefer allmulti to promiscuous for LACP")
Cc: stable@dpdk.org
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/bonding/rte_eth_bond_pmd.c