OpenCloudOS-Kernel/drivers/net/ethernet/intel
Alexander Duyck 124b74c18e fm10k/igb/ixgbe: Use dma_rmb on Rx descriptor reads
This change makes it so that dma_rmb is used when reading the Rx
descriptor.  The advantage of dma_rmb is that it allows for a much
lower cost barrier on x86, powerpc, arm, and arm64 architectures than a
traditional memory barrier when dealing with reads that only have to
synchronize to coherent memory.

In addition I have updated the code so that it just checks to see if any
bits have been set instead of just the DD bit since the DD bit will always
be set as a part of a descriptor write-back so we just need to check for a
non-zero value being present at that memory location rather than just
checking for any specific bit.  This allows the code itself to appear much
cleaner and allows the compiler more room to optimize.

Cc: Matthew Vick <matthew.vick@intel.com>
Cc: Don Skidmore <donald.c.skidmore@intel.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Alexander Duyck <alexander.h.duyck@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-12-11 21:15:06 -05:00
..
e1000 ethernet/intel: Use napi_alloc_skb 2014-12-10 13:31:57 -05:00
e1000e Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2014-12-11 14:27:06 -08:00
fm10k fm10k/igb/ixgbe: Use dma_rmb on Rx descriptor reads 2014-12-11 21:15:06 -05:00
i40e i40e/i40evf: Convert macro to static inline 2014-12-09 12:57:05 -08:00
i40evf i40e/i40evf: Convert macro to static inline 2014-12-09 12:57:05 -08:00
igb fm10k/igb/ixgbe: Use dma_rmb on Rx descriptor reads 2014-12-11 21:15:06 -05:00
igbvf PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00
ixgb ethernet/intel: Use napi_alloc_skb 2014-12-10 13:31:57 -05:00
ixgbe fm10k/igb/ixgbe: Use dma_rmb on Rx descriptor reads 2014-12-11 21:15:06 -05:00
ixgbevf ethernet/intel: Use eth_skb_pad and skb_put_padto helpers 2014-12-08 20:47:42 -05:00
Kconfig fm10k: Add CONFIG_FM10K_VXLAN configuration option 2014-10-16 02:03:39 -07:00
Makefile fm10k: Add skeletal frame for Intel(R) FM10000 Ethernet Switch Host Interface Driver 2014-09-23 03:59:13 -07:00
e100.c PCI: Remove DEFINE_PCI_DEVICE_TABLE macro use 2014-08-12 12:15:14 -06:00