]> git.baikalelectronics.ru Git - kernel.git/commit
igb: Use dma_wmb() instead of wmb() before doorbell writes
authorVenkatesh Srinivas <venkateshs@google.com>
Fri, 25 May 2018 04:13:21 +0000 (00:13 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 26 Jul 2018 16:04:05 +0000 (09:04 -0700)
commit56a9ad6c01e259314bed8161a6b56d46a541b665
tree605507857b6a8f241e0d41bd8c303d61f74f36b2
parent3449339ae322be67b2ebbb542d285656e81d0de6
igb: Use dma_wmb() instead of wmb() before doorbell writes

igb writes to doorbells to post transmit and receive descriptors;
after writing descriptors to memory but before writing to doorbells,
use dma_wmb() rather than wmb(). wmb() is more heavyweight than
necessary before doorbell writes.

On x86, this avoids SFENCEs before doorbell writes in both the
tx and rx refill paths.

Signed-off-by: Venkatesh Srinivas <venkateshs@google.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igb/igb_main.c