bond: set offload capabilities flags
authorJia Yu <jyu@vmware.com>
Thu, 27 Nov 2014 21:23:37 +0000 (21:23 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 27 Nov 2014 21:50:06 +0000 (22:50 +0100)
commit4f1e87a332877fd606883585ae03e23526ba9a85
tree411537c9cf9395725977f8092a221e5104a84e5e
parent0c8396e6d786768cccc0078ae96231997141a4e5
bond: set offload capabilities flags

Before the fix, bond device's offload capabilities are unset. This fix
takes the minimum common set of slave devices' capabilities as bond
device's capabilities. For simplicity, we ensure all slave devices
to have a capability before bond device can claim this capability,
even if some slave devices are unused (i.e. linked down, standby).

Signed-off-by: Jia Yu <jyu@vmware.com>
Signed-off-by: Declan Doherty <declan.doherty@intel.com>
lib/librte_pmd_bond/rte_eth_bond_api.c
lib/librte_pmd_bond/rte_eth_bond_pmd.c
lib/librte_pmd_bond/rte_eth_bond_private.h