net/bonding: fix slave Tx burst for mode 4
authorChas Williams <chas3@att.com>
Thu, 14 Feb 2019 19:09:58 +0000 (14:09 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Feb 2019 15:41:43 +0000 (16:41 +0100)
commitaf91947cd236ece51b026ad9648b12cb59deeee5
tree4f362fd56b40d2747552480f86cb3878cade2add
parentcb05494d2910ec35005877a79e03b9a791500111
net/bonding: fix slave Tx burst for mode 4

The Tx burst routine always needs to check for pending LACPDUs
and send them if available. Do this first to prioritize the
control traffic.  We can still early exit, before calculating
the distribution slaves, if there isn't any data packets.

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