diff options
author | Manjunath Patil <manjunath.b.patil@oracle.com> | 2019-10-05 18:20:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-31 18:44:37 +0300 |
commit | 8f3d1245a1046130ab7ecfa6b52baac1fe4b7734 (patch) | |
tree | d0a9398597d7933e345863bc34a3faa5750fc0bd /drivers/net/ethernet/freescale/fec.h | |
parent | d8073aa69d61592892100869fe9fbb951b5bf87f (diff) | |
download | linux-8f3d1245a1046130ab7ecfa6b52baac1fe4b7734.tar.xz |
ixgbe: protect TX timestamping from API misuse
[ Upstream commit 07066d9dc3d2326fbad8f7b0cb0120cff7b7dedb ]
HW timestamping can only be requested for a packet if the NIC is first
setup via ioctl(SIOCSHWTSTAMP). If this step was skipped, then the ixgbe
driver still allowed TX packets to request HW timestamping. In this
situation, we see 'clearing Tx Timestamp hang' noise in the log.
Fix this by checking that the NIC is configured for HW TX timestamping
before accepting a HW TX timestamping request.
Similar-to:
commit 26bd4e2db06b ("igb: protect TX timestamping from API misuse")
commit 0a6f2f05a2f5 ("igb: Fix a test with HWTSTAMP_TX_ON")
Signed-off-by: Manjunath Patil <manjunath.b.patil@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/freescale/fec.h')
0 files changed, 0 insertions, 0 deletions