bond: disable broadcast mode if mbuf refcnt is disabled
authorDeclan Doherty <declan.doherty@intel.com>
Wed, 22 Oct 2014 12:59:24 +0000 (13:59 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 22 Oct 2014 13:47:18 +0000 (15:47 +0200)
commitfa7f63e7e26f7a4766af23e2a7c2932ef8f34edc
tree70fec99585bd889224de998a6c32920dfe1c1de4
parent71d47d3d2ee8231afee447ebe228151befb2c01c
bond: disable broadcast mode if mbuf refcnt is disabled

Link bonding broadcast mode requires refcnt parameter in the mbuf struct to
allow efficient transmission of duplicated mbufs on slave ports.

This patch disables broadcast mode when the complication option RTE_MBUF_REFCNT
is disabled to allow clean building of the bonding library.
A warning message notify user of disabling of broadcast mode.

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
app/test/test_link_bonding.c
lib/librte_pmd_bond/Makefile
lib/librte_pmd_bond/rte_eth_bond.h
lib/librte_pmd_bond/rte_eth_bond_args.c
lib/librte_pmd_bond/rte_eth_bond_pmd.c