aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e
diff options
context:
space:
mode:
authorManjunath Patil <manjunath.b.patil@oracle.com>2019-10-05 08:20:03 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-11-04 13:16:30 -0800
commit07066d9dc3d2326fbad8f7b0cb0120cff7b7dedb (patch)
treecc0dbc7217edbbead140c3aabf55448a9f9a2184 /drivers/net/ethernet/intel/i40e
parentfm10k: update driver version to match out-of-tree (diff)
downloadlinux-dev-07066d9dc3d2326fbad8f7b0cb0120cff7b7dedb.tar.xz
linux-dev-07066d9dc3d2326fbad8f7b0cb0120cff7b7dedb.zip
ixgbe: protect TX timestamping from API misuse
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>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e')
0 files changed, 0 insertions, 0 deletions