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>
This commit is contained in:

committed by
Jeff Kirsher

parent
afc835d1bd
commit
ed4420a3b4
@@ -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 {
|
||||
|
Reference in New Issue
Block a user