netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next PATCH 0/3] Replace wmb()/rmb() with dma_wmb()/dma_rmb() where appropriate
@ 2015-04-07 23:55 Alexander Duyck
  2015-04-07 23:55 ` [net-next PATCH 1/3] sungem, sunhme, sunvnet: Update drivers to use dma_wmb/rmb Alexander Duyck
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Alexander Duyck @ 2015-04-07 23:55 UTC (permalink / raw)
  To: netdev; +Cc: davem

This is a start of a side project cleaning up the drivers that can make use
of the dma_wmb and dma_rmb calls.  The general idea is to start removing
the unnecessary wmb/rmb calls from a number of drivers and to make use of
the lighter weight dma_wmb/dma_rmb calls as this should allow for an
overall improvement in performance as each barrier can cost a significant
number of cycles and on architectures such as x86 this is unnecessary.

These changes are what I would consider low hanging fruit.  The likelihood
of the changes introducing an error should be low since the use of the
barriers in these cases are fairly obvious.

---

Alexander Duyck (3):
      sungem, sunhme, sunvnet: Update drivers to use dma_wmb/rmb
      s2io: Update driver to use dma_wmb
      e1000, e1000e: Use dma_rmb instead of rmb for descriptor read ordering


 drivers/net/ethernet/intel/e1000/e1000_main.c |    6 +++---
 drivers/net/ethernet/intel/e1000e/netdev.c    |    8 ++++----
 drivers/net/ethernet/neterion/s2io.c          |    8 ++++----
 drivers/net/ethernet/sun/sungem.c             |   14 +++++++-------
 drivers/net/ethernet/sun/sunhme.c             |   16 ++++++++--------
 drivers/net/ethernet/sun/sunvnet.c            |    6 +++---
 6 files changed, 29 insertions(+), 29 deletions(-)

--

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-08 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-07 23:55 [net-next PATCH 0/3] Replace wmb()/rmb() with dma_wmb()/dma_rmb() where appropriate Alexander Duyck
2015-04-07 23:55 ` [net-next PATCH 1/3] sungem, sunhme, sunvnet: Update drivers to use dma_wmb/rmb Alexander Duyck
2015-04-07 23:55 ` [net-next PATCH 2/3] s2io: Update driver to use dma_wmb Alexander Duyck
2015-04-07 23:55 ` [net-next PATCH 3/3] e1000, e1000e: Use dma_rmb instead of rmb for descriptor read ordering Alexander Duyck
2015-04-08  1:06   ` Jeff Kirsher
2015-04-08 16:15 ` [net-next PATCH 0/3] Replace wmb()/rmb() with dma_wmb()/dma_rmb() where appropriate David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).