]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Update DESC_NEEDED define to adjust for changes to MAX_SKB_FRAGS
authorAlexander Duyck <alexander.h.duyck@intel.com>
Sat, 26 Jan 2013 02:08:14 +0000 (02:08 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 16 Feb 2013 07:59:32 +0000 (23:59 -0800)
commit043e7928bd8af9b5f5401dfb1a01c5a95b3b82d7
tree46f0b8155e6032cd410b0dda690f0490c4c08279
parentc64f50df6d806908e75e5bbee2692ab42bc505c4
ixgbe: Update DESC_NEEDED define to adjust for changes to MAX_SKB_FRAGS

Recent changes have made it so that MAX_SKB_FRAGS is now never less than 16.
As a result we were seeing issues on systems with 64K pages as it would
cause DESC_NEEDED to increase to 68, and we would need over 136 descriptors
free before clean_tx_irq would wake the queue.

This patch makes it so that DESC_NEEDED is always MAX_SKB_FRAGS + 4.  This
should prevent any possible deadlocks on the systems with 64K pages as we will
now only require 42 descriptors to wake.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h