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)
commit151b260c624d47b2c78b2f887e4f791c09c73c17
tree6cb1fcce48b87be0e4fcf8f7d5ffb592587f79bc
parentff29a86ec9143ff1aa1901ae60f06f4980981df4
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