net/bonding: fix LACP negotiation
authorYicai Lu <luyicai@huawei.com>
Fri, 10 Jul 2020 03:29:35 +0000 (11:29 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:54 +0000 (06:18 +0200)
commita9cbca743083ace5232e9df90119b4defa7df6e5
treec1bafbaaa8b5d77bf8813bda7a796fc9f78c92e1
parent2564abda35db93ff75dd78d8e231c212ebb8cfc9
net/bonding: fix LACP negotiation

When two host is connected directly without any devices like switch,
rx_machine_update would receiving partner LACP negotiation packets,
and partner's port mac is filled with zeros in this packet, which is
different with internal's mode4 mac. So in this situation, it would
never go rx_machine branch and then execute mac swap for negotiation!
Thus bond mode 4 will negotiation failed.

Fixes: 56cbc0817399 ("net/bonding: fix LACP negotiation")
Cc: stable@dpdk.org
Signed-off-by: Yicai Lu <luyicai@huawei.com>
Reviewed-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/bonding/rte_eth_bond_8023ad.c