i40e/i40evf: Update DESC_NEEDED value to reflect larger value
authorAlexander Duyck <[email protected]>
Fri, 26 Jan 2018 16:54:45 +0000 (08:54 -0800)
committerDavid S. Miller <[email protected]>
Mon, 29 Jan 2018 19:21:01 +0000 (14:21 -0500)
commit0a797db323a6f74da3f43d5460792989da6617f4
tree8c76629a886cd74641ff8ae354a3ade6b0d885b3
parent0bc0b97fca73fca19edd0bd1463972144b44abaa
i40e/i40evf: Update DESC_NEEDED value to reflect larger value

When compared to ixgbe and other previous Intel drivers the i40e and i40evf
drivers actually reserve 2 additional descriptors in maybe_stop_tx for
cache line alignment. We need to update DESC_NEEDED to reflect this as
otherwise we are more likely to return TX_BUSY which will cause issues with
things like xmit_more.

Signed-off-by: Alexander Duyck <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.h