From d2642c3a5c4bc51185ad6fac564269b50dadfbe4 Mon Sep 17 00:00:00 2001 From: Jeya ganesh babu J Date: Thu, 25 Jul 2019 18:54:06 -0700 Subject: [PATCH] Dpdk link failover not working. closes-jira-bug: CEM-7346 Issue in the dpdk bond driver. When the number of slaves becomes less than 2, the driver doesnt send out the packet with regular tx function. The issue is not present in the fast tx function of the driver. Change-Id: Ifb41561587648f10388dc78fbf54cdc37e2b3733 --- drivers/net/bonding/rte_eth_bond_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/bonding/rte_eth_bond_pmd.c b/drivers/net/bonding/rte_eth_bond_pmd.c index 5f600d893f..18306994b3 100644 --- a/drivers/net/bonding/rte_eth_bond_pmd.c +++ b/drivers/net/bonding/rte_eth_bond_pmd.c @@ -1321,7 +1321,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