linux/drivers/net/ethernet/intel/fm10k
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
..
fm10k_common.c fm10k: Add support for PF 2014-09-23 03:59:15 -07:00
fm10k_common.h fm10k: Add support for ptp to hw specific files 2014-09-23 03:59:22 -07:00
fm10k_dcbnl.c fm10k: Add support for IEEE DCBx 2014-09-23 03:59:21 -07:00
fm10k_debugfs.c fm10k: Add support for debugfs 2014-09-23 03:59:22 -07:00
fm10k_ethtool.c ethtool: Support for configurable RSS hash function 2014-12-08 21:07:10 -05:00
fm10k_iov.c fm10k: Add support for SR-IOV to driver 2014-09-23 03:59:21 -07:00
fm10k_main.c fm10k/igb/ixgbe: Use dma_rmb on Rx descriptor reads 2014-12-11 21:15:06 -05:00
fm10k_mbx.c fm10k: Add support for VF 2014-09-23 03:59:20 -07:00
fm10k_mbx.h fm10k: Add support for PF <-> VF mailbox 2014-09-23 03:59:20 -07:00
fm10k_netdev.c fm10k: Add CONFIG_FM10K_VXLAN configuration option 2014-10-16 02:03:39 -07:00
fm10k_pci.c fm10k: use netdev_rss_key_fill() helper 2014-11-16 15:59:12 -05:00
fm10k_pf.c fm10k: Add support for ptp to hw specific files 2014-09-23 03:59:22 -07:00
fm10k_pf.h fm10k: Add support for SR-IOV to PF core files 2014-09-23 03:59:21 -07:00
fm10k_ptp.c fm10k: Add support for PTP 2014-09-23 03:59:23 -07:00
fm10k_tlv.c fm10k: Add support for mailbox 2014-09-23 03:59:14 -07:00
fm10k_tlv.h fm10k: Add support for mailbox 2014-09-23 03:59:14 -07:00
fm10k_type.h fm10k: Add support for ptp to hw specific files 2014-09-23 03:59:22 -07:00
fm10k_vf.c fm10k: Add support for ptp to hw specific files 2014-09-23 03:59:22 -07:00
fm10k_vf.h fm10k: Add support for ptp to hw specific files 2014-09-23 03:59:22 -07:00
fm10k.h fm10k: Reduce buffer size when pages are larger than 4K 2014-10-01 23:42:01 -07:00
Makefile fm10k: Add support for PTP 2014-09-23 03:59:23 -07:00