summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igb
diff options
context:
space:
mode:
authorAlexander Duyck <alexander.h.duyck@intel.com>2013-01-08 07:01:03 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-01-19 04:58:30 -0800
commit70d289bcef24eca45dadf2f10fe79a936589216e (patch)
tree8db20235dfffa5d29428eec58c3e0070186af5fa /drivers/net/ethernet/intel/igb
parent088245a3584d13f94ff0b4c1610dae7d897b28f9 (diff)
downloadblackbird-obmc-linux-70d289bcef24eca45dadf2f10fe79a936589216e.tar.gz
blackbird-obmc-linux-70d289bcef24eca45dadf2f10fe79a936589216e.zip
igb: Replace rmb in Tx cleanup with read_barrier_depends
The rmb in the Tx cleanup path is a much stronger barrier than we really need. All that is really needed is a read_barrier_depends since the location of the EOP descriptor is dependent on the eop_desc value. Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igb')
-rw-r--r--drivers/net/ethernet/intel/igb/igb_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb_main.c b/drivers/net/ethernet/intel/igb/igb_main.c
index c9e438ba1ec2..78354046cb3b 100644
--- a/drivers/net/ethernet/intel/igb/igb_main.c
+++ b/drivers/net/ethernet/intel/igb/igb_main.c
@@ -5930,7 +5930,7 @@ static bool igb_clean_tx_irq(struct igb_q_vector *q_vector)
break;
/* prevent any other reads prior to eop_desc */
- rmb();
+ read_barrier_depends();
/* if DD is not set pending work has not been completed */
if (!(eop_desc->wb.status & cpu_to_le32(E1000_TXD_STAT_DD)))
OpenPOWER on IntegriCloud