]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: fix race conditions on queuing skb for HW time stamp
authorJakub Kicinski <kubakici@wp.pl>
Sat, 15 Mar 2014 14:55:21 +0000 (14:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 31 Mar 2014 22:48:00 +0000 (15:48 -0700)
commit67611a9d696463ab0496f5b82abaec8f378c78fd
tree6cb1fcce48b87be0e4fcf8f7d5ffb592587f79bc
parent754e670fa61fed3a2eb3164e3acd78427be35855
ixgbe: fix race conditions on queuing skb for HW time stamp

ixgbe has a single set of TX time stamping resources per NIC.
Use a simple bit lock to avoid race conditions and leaking skbs
when multiple TX rings try to claim time stamping.

Signed-off-by: Jakub Kicinski <kubakici@wp.pl>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c