net/cxgbe: fix crash when accessing empty Tx mbuf list
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Tue, 1 Sep 2020 17:20:09 +0000 (22:50 +0530)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:12 +0000 (18:55 +0200)
commitdca62adebf68ec94d84444fd2a61f03f73f51ffb
tree8658e51b80bd79329fbf338338f8214517851e65
parentb9b75d9b5c9dbc71ee12f77e9abe089492708aae
net/cxgbe: fix crash when accessing empty Tx mbuf list

Ensure packets are available before accessing the mbuf list in Tx
burst function. Otherwise, just reclaim completed Tx descriptors and
exit.

Fixes: b1df19e43e1d ("net/cxgbe: fix prefetch for non-coalesced Tx packets")
Cc: stable@dpdk.org
Reported-by: Brian Poole <brian90013@gmail.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_ethdev.c