linux-stable/drivers/net/ethernet/intel/ixgbevf
Alexander Duyck e757e3e198 ixgbevf: Make next_to_watch a pointer and adjust memory barriers to avoid races
This change is meant to address several race issues that become possible
because next_to_watch could possibly be set to a value that shows that the
descriptor is done when it is not.  In order to correct that we instead make
next_to_watch a pointer that is set to NULL during cleanup, and set to the
eop_desc after the descriptor rings have been written.

To enforce proper ordering the next_to_watch pointer is not set until after
a wmb writing the values to the last descriptor in a transmit.  In order to
guarantee that the descriptor is not read until after the eop_desc we use the
read_barrier_depends which is only really necessary on the alpha architecture.

Signed-off-by: Alexander Duyck <alexander.h.duyck@intel.com>
Acked-by: Greg Rose <gregory.v.rose@intel.com>
Tested-by: Sibai Li <sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2013-03-08 00:03:26 -08:00
..
defines.h ixgbevf: Add VF DCB + SR-IOV support 2012-10-22 21:15:35 -07:00
ethtool.c ixgbevf: Make sure link status and speed are fetched 2013-01-28 00:19:52 -08:00
ixgbevf.h ixgbevf: Make next_to_watch a pointer and adjust memory barriers to avoid races 2013-03-08 00:03:26 -08:00
ixgbevf_main.c ixgbevf: Make next_to_watch a pointer and adjust memory barriers to avoid races 2013-03-08 00:03:26 -08:00
Makefile ixgbevf: Update copyright notices 2012-02-03 03:07:09 -08:00
mbx.c ixgbevf: Fix code for handling timeout 2012-09-24 00:21:51 -07:00
mbx.h ixgbevf: Add VF DCB + SR-IOV support 2012-10-22 21:15:35 -07:00
regs.h ixgbevf: Update copyright notices 2012-02-03 03:07:09 -08:00
vf.c eth: Make is_link_local() consistent with other address tests 2012-11-02 21:34:05 -04:00
vf.h ixgbevf: Add VF DCB + SR-IOV support 2012-10-22 21:15:35 -07:00