]> git.baikalelectronics.ru Git - kernel.git/commit
i40e: free skb after clearing lock in ptp_stop
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 17 May 2018 08:08:32 +0000 (01:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 22 May 2018 15:37:06 +0000 (08:37 -0700)
commit26e835c5fb203637c4ed577a3de02e0a03aafd8e
treec8258b5cb722ae1551a1d2ac159b6a72f5df8ee5
parentd7b6e67531ca1ba4dd9a0e2ea3ea9fcb6f6a19ed
i40e: free skb after clearing lock in ptp_stop

Use the same logic to free the skb after clearing the Tx timestamp bit
lock in i40e_ptp_stop as we use in the other locations. It is not as
important here since we are not racing against a future Tx timestamp
request (as we are disabling PTP at this point). However it is good to
be consistent in how we approach the bit lock so that future callers
don't copy the old anti-pattern.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_ptp.c