]> 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)
commit0c8d8518e3c29bb6f002953e1af3ebcf18af11cd
tree6cb1fcce48b87be0e4fcf8f7d5ffb592587f79bc
parent3d54f28495e2f0381aaf038f34b8387593de4a12
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