]> git.droids-corp.org - dpdk.git/commit
net/bonding: fix slaves initializing on MTU setting
authorJunjie Wan <wanjunjie@bytedance.com>
Tue, 15 Feb 2022 10:59:40 +0000 (18:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 17 Feb 2022 11:55:21 +0000 (12:55 +0100)
commitb3eaaf1d08ec70646bdd69416253dfb355480492
treec6a6f23a4cf3dfbcb09b0427abcdeeb2c4ba6169
parent6f65049e89d31bc4b1187174beb78269941d618f
net/bonding: fix slaves initializing on MTU setting

If a initial process for the bonding device is like:
rte_eth_dev_configure
rte_eth_dev_set_mtu
queue setup and start, etc.

Pass the vdev args to application, and init bonding device only.
-a 0000:af:00.0 --vdev="net_bonding0,mode=2,slave=0000:af:00.0"

It will fail and complain for the slave device
"Port 0 must be configured before MTU set"

Test can be reproduced with ovs.

Fixes: b26bee10ee37 ("ethdev: forbid MTU set before device configure")
Cc: stable@dpdk.org
Signed-off-by: Junjie Wan <wanjunjie@bytedance.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
app/test/test_link_bonding.c
app/test/test_link_bonding_rssconf.c
drivers/net/bonding/eth_bond_private.h
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/bonding/rte_eth_bond_pmd.c