net/qede: fix Rx packet drop
authorShahed Shaikh <shshaikh@marvell.com>
Tue, 12 Mar 2019 16:51:14 +0000 (09:51 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 20 Mar 2019 17:15:42 +0000 (18:15 +0100)
commit3732f83a45f5ee7b45d7655a15150f665841ce53
treeba092353ae6dd46e651eebbce74f4d75328b876f
parent7065dff68e9af69d3752ca3f514971d98fc26fbc
net/qede: fix Rx packet drop

There is a corner case in which driver won't post
receive buffers when driver has processed all received packets
in single loop (i.e. hw_consumer == sw_consumer) and then
HW will start dropping packets since it did not see new receive
buffers posted.

This corner case is seen when size of Rx ring is less than or equals
Rx packet burst count for dev->rx_pkt_burst().

Fixes: 8f2312474529 ("net/qede: fix performance bottleneck in Rx path")
Cc: stable@dpdk.org
Signed-off-by: Shahed Shaikh <shshaikh@marvell.com>
Acked-by: Rasesh Mody <rmody@marvell.com>
drivers/net/qede/qede_rxtx.c