diff options
author | Jakub Kicinski <kubakici@wp.pl> | 2014-03-15 14:55:32 +0000 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2014-03-28 06:54:02 -0700 |
commit | ed4420a3b412b09cc60d6e3d662428b7e6c36e90 (patch) | |
tree | f7b57251f5948e2f4c1f6e9b35c2d0a77a3eae79 /drivers/net/ethernet/intel/igb/igb.h | |
parent | afc835d1bda13923e3792d838dae1fa34c506b09 (diff) | |
download | talos-obmc-linux-ed4420a3b412b09cc60d6e3d662428b7e6c36e90.tar.gz talos-obmc-linux-ed4420a3b412b09cc60d6e3d662428b7e6c36e90.zip |
igb: fix race conditions on queuing skb for HW time stamp
igb 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: 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/igb.h')
-rw-r--r-- | drivers/net/ethernet/intel/igb/igb.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/igb/igb.h b/drivers/net/ethernet/intel/igb/igb.h index 411b213c63be..7fbe1e925143 100644 --- a/drivers/net/ethernet/intel/igb/igb.h +++ b/drivers/net/ethernet/intel/igb/igb.h @@ -492,7 +492,8 @@ struct igb_adapter { enum e1000_state_t { __IGB_TESTING, __IGB_RESETTING, - __IGB_DOWN + __IGB_DOWN, + __IGB_PTP_TX_IN_PROGRESS, }; enum igb_boards { |