]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_pmd_bond/rte_eth_bond.h
bond: disable broadcast mode if mbuf refcnt is disabled
[dpdk.git] / lib / librte_pmd_bond / rte_eth_bond.h
index bd59780a2e0ba014cdeb7ff1eb9587f4ad923502..344ca1ed65e8a1570fb1e86f710f0ede4a8c5e24 100644 (file)
@@ -71,11 +71,12 @@ extern "C" {
  * slaves using one of three available transmit policies - l2, l2+3 or l3+4.
  * See BALANCE_XMIT_POLICY macros definitions for further details on transmit
  * policies. */
+#ifdef RTE_MBUF_REFCNT
 #define BONDING_MODE_BROADCAST                 (3)
 /**< Broadcast (Mode 3).
  * In this mode all transmitted packets will be transmitted on all available
  * active slaves of the bonded. */
-
+#endif
 /* Balance Mode Transmit Policies */
 #define BALANCE_XMIT_POLICY_LAYER2             (0)
 /**< Layer 2 (Ethernet MAC) */