net/bonding: set MTU on slave configure
Subsystems (2)
PATCH 1/1 net/bonding: set MTU on slave configure
From: Chas Williams <[email protected]>
When a slave is configured make sure that the slave's MTU matches the bonding's idea of the MTU.
Signed-off-by Chas Williams <[email protected]>
--- drivers/net/bonding/rte_eth_bond_pmd.c | 8 ++++++++ 1 file changed, 8 insertions(+)
drivers/net/bonding/rte_eth_bond_pmd.c +8 -0
@@ -1831,6 +1831,14 @@ slave_configure(struct rte_eth_dev *bonded_eth_dev, } } + errval =rte_eth_dev_set_mtu (slave_eth_dev->data->port_id, + bonded_eth_dev->data->mtu); +if (errval !=0 && errval != -ENOTSUP ) { +RTE_BOND_LOG (ERR ,"rte_eth_dev_set_mtu: port %u, err (%d)" , + slave_eth_dev->data->port_id, errval); +return errval; + } +/* Configure device */ errval = rte_eth_dev_configure(slave_eth_dev->data->port_id, nb_rx_queues, nb_tx_queues,
Signature · 1 line
2.13.6
Quoted 8 lines · Chas Williams
From: Chas Williams <[email protected]>
When a slave is configured make sure that the slave's MTU matches the bonding's idea of the MTU.
Signed-off-by Chas Williams <[email protected]>---
Acked-by Radu Nicolau <[email protected]>
Ferruh Yigit
AppliedQuoted 11 lines · Radu Nicolau
Quoted 8 lines · Chas Williams
From: Chas Williams <[email protected]>
When a slave is configured make sure that the slave's MTU matches the bonding's idea of the MTU.
Signed-off-by Chas Williams <[email protected]>---
Acked-by Radu Nicolau <[email protected]>
Applied to dpdk-next-net/master, thanks.