summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/e1000e/ich8lan.c
diff options
context:
space:
mode:
authorCliff Spradlin <cspradlin@google.com>2017-06-19 13:30:43 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-08-08 17:43:18 -0700
commit26bd4e2db06be8a367cba076c6600b4d5c3e65af (patch)
tree66f276c731d252924006295691a1bf0cd16d051b /drivers/net/ethernet/intel/e1000e/ich8lan.c
parent94221ae75c869b28bceb76ae300b55d35c186406 (diff)
igb: 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 igb driver still allowed TX packets to request HW timestamping. In this situation, the _IGB_PTP_TX_IN_PROGRESS flag was set and would never clear. This prevented any future HW timestamping requests to succeed. Fix this by checking that the NIC is configured for HW TX timestamping before accepting a HW TX timestamping request. Signed-off-by: Cliff Spradlin <cspradlin@google.com> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/e1000e/ich8lan.c')
0 files changed, 0 insertions, 0 deletions