net/bonding: fix Tx in 802.3ad mode
authorChas Williams <chas3@att.com>
Mon, 11 Feb 2019 16:34:36 +0000 (11:34 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 13 Feb 2019 13:07:34 +0000 (14:07 +0100)
We can transmit if there is at least one distributing slave.

Fixes: 09150784a776 ("net/bonding: burst mode hash calculation")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <chas3@att.com>
drivers/net/bonding/rte_eth_bond_pmd.c

index 23cec25..2304172 100644 (file)
@@ -1319,7 +1319,7 @@ bond_ethdev_tx_burst_8023ad(void *queue, struct rte_mbuf **bufs,
                                        slave_port_ids[i];
        }
 
-       if (likely(dist_slave_count > 1)) {
+       if (likely(dist_slave_count > 0)) {
 
                /*
                 * Populate slaves mbuf with the packets which are to be sent