net/bnx2x: fix transmit queue free threshold
authorChas Williams <ciwillia@brocade.com>
Fri, 10 Feb 2017 20:12:06 +0000 (15:12 -0500)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 13:52:50 +0000 (15:52 +0200)
commitf078565129809a4737de8eea1b3c4c24f5472c3b
treeec1ce44ef49443060d54d9dd4f195c1ce07c84a3
parentc8d4ee50cc8529eda95aa9c8fc2d2e919166142d
net/bnx2x: fix transmit queue free threshold

The default tx_free_thresh is potentially larger than the allocated queue
which will result in TX queue cleanup never happening.  To fix this,
lower the default free threshold and ensure that the free threshold is
never greater than the maximum outstanding transmit buffers.

Fixes: 827ed2a118cc ("net/bnx2x: restructure Tx routine")
Cc: stable@dpdk.org
Signed-off-by: Chas Williams <ciwillia@brocade.com>
Acked-by: Harish Patil <harish.patil@qlogic.com>
drivers/net/bnx2x/bnx2x_rxtx.c
drivers/net/bnx2x/bnx2x_rxtx.h