]> git.droids-corp.org - dpdk.git/commit
net/bonding: fix MTU set for slaves
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 26 Jan 2022 13:10:37 +0000 (13:10 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Jan 2022 16:21:18 +0000 (17:21 +0100)
commit20a53b1927da67f62366752ae2d737cb4ded9b6e
tree7602163867e349654748d263f35f6ba19c3733bc
parent29e5519dab554407f9d375abb40fdb57f8d445db
net/bonding: fix MTU set for slaves

ethdev requires device to be configured before setting MTU.

In bonding PMD, while configuring slaves, bonding first sets MTU later
configures them, which causes failure if slaves are not configured in
advance.

Fixing by changing the order in slave configure as requested in ethdev
layer, configure first and set MTU later.

Bugzilla ID: 864
Fixes: b26bee10ee37 ("ethdev: forbid MTU set before device configure")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Tested-by: Yu Jiang <yux.jiang@intel.com>
Acked-by: Min Hu (Connor) <humin29@huawei.com>
drivers/net/bonding/rte_eth_bond_pmd.c