i40e/i40evf: Update DESC_NEEDED value to reflect larger value
authorAlexander Duyck <alexander.h.duyck@intel.com>
Fri, 26 Jan 2018 16:54:45 +0000 (08:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
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 <alexander.h.duyck@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/i40e/i40e_txrx.h
drivers/net/ethernet/intel/i40evf/i40e_txrx.h