net/bonding: fix stopping non-active slaves
authorHuisong Li <lihuisong@huawei.com>
Tue, 3 May 2022 10:02:13 +0000 (18:02 +0800)
committerFerruh Yigit <ferruh.yigit@xilinx.com>
Wed, 11 May 2022 12:48:16 +0000 (14:48 +0200)
commitf5e72e8e8d57b331baf1a86d15eb7fae921f57fb
tree36dcefb393872fc5c129d85ba3a72e424ee5a189
parent8da794e956beff25f0f4c3aba171f2bd3a92cc09
net/bonding: fix stopping non-active slaves

When stopping a bonded port, all slaves should be stopped. But only
active slaves are stopped.
So fix by stopping all slave ports and later do "deactivate_slave()" for
active slaves.

Fixes: 0911d4ec0183 ("net/bonding: fix crash when stopping mode 4 port")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/bonding/rte_eth_bond_pmd.c