net/bonding: inherit maximum Rx packet length
authorEric Kinzie <ehkinzie@gmail.com>
Sat, 7 May 2016 03:45:24 +0000 (20:45 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Mon, 20 Jun 2016 16:36:47 +0000 (18:36 +0200)
commit6cfc6a4f0d61fd65c03b81b10a168d32365b1687
treeb1a8d62bdabcc7a5f3577ddf99dbc09feb2ab99e
parentf994cecafdcf8d84a368d06e29ce7200c59b2188
net/bonding: inherit maximum Rx packet length

Instead of a hard-coded maximum receive length, allow the bonded interface
to inherit this limit from the slave interfaces.  This allows
an application that uses jumbo frames to pass realistic values to
rte_eth_dev_configure without causing an error.

Before the bonding interface is configured, allow slaves with any
max_rx_pktlen to be added and remember the lowest of these values as
a candidate value.  During dev_configure, set the bond device's
max_rx_pktlen to the candidate value.  After this point only slaves
with a max_rx_pktlen greater or equal to that of the bonding device
can be added.

If all slaves are removed, the bond device's pktlen is cleared.

Signed-off-by: Eric Kinzie <ehkinzie@gmail.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_api.c
drivers/net/bonding/rte_eth_bond_pmd.c
drivers/net/bonding/rte_eth_bond_private.h