igb: fix race conditions on queuing skb for HW time stamp
authorJakub Kicinski <kubakici@wp.pl>
Sat, 15 Mar 2014 14:55:32 +0000 (14:55 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 28 Mar 2014 13:54:02 +0000 (06:54 -0700)
commited4420a3b412b09cc60d6e3d662428b7e6c36e90
treef7b57251f5948e2f4c1f6e9b35c2d0a77a3eae79
parentafc835d1bda13923e3792d838dae1fa34c506b09
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>
drivers/net/ethernet/intel/igb/igb.h
drivers/net/ethernet/intel/igb/igb_main.c
drivers/net/ethernet/intel/igb/igb_ptp.c
This page took 0.02779 seconds and 5 git commands to generate.