From: Chas Williams Date: Mon, 11 Feb 2019 16:34:36 +0000 (-0500) Subject: net/bonding: fix Tx in 802.3ad mode X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=bddcc1228cdb447b99ec7d245732c81c65830ca9;p=dpdk.git net/bonding: fix Tx in 802.3ad mode 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 --- diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 23cec2549d..2304172d03 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -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