Skip to content

Commit 638effa

Browse files
gal-pressmandavem330
authored andcommitted
igb: Remove setting of RX software timestamp
The responsibility for reporting of RX software timestamp has moved to the core layer (see __ethtool_get_ts_info()), remove usage from the device drivers. Reviewed-by: Carolina Jubran <[email protected]> Reviewed-by: Rahul Rameshbabu <[email protected]> Signed-off-by: Gal Pressman <[email protected]> Reviewed-by: Tony Nguyen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6aebd82 commit 638effa

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

drivers/net/ethernet/intel/igb/igb_ethtool.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2387,15 +2387,11 @@ static int igb_get_ts_info(struct net_device *dev,
23872387

23882388
if (adapter->ptp_clock)
23892389
info->phc_index = ptp_clock_index(adapter->ptp_clock);
2390-
else
2391-
info->phc_index = -1;
23922390

23932391
switch (adapter->hw.mac.type) {
23942392
case e1000_82575:
23952393
info->so_timestamping =
2396-
SOF_TIMESTAMPING_TX_SOFTWARE |
2397-
SOF_TIMESTAMPING_RX_SOFTWARE |
2398-
SOF_TIMESTAMPING_SOFTWARE;
2394+
SOF_TIMESTAMPING_TX_SOFTWARE;
23992395
return 0;
24002396
case e1000_82576:
24012397
case e1000_82580:
@@ -2405,8 +2401,6 @@ static int igb_get_ts_info(struct net_device *dev,
24052401
case e1000_i211:
24062402
info->so_timestamping =
24072403
SOF_TIMESTAMPING_TX_SOFTWARE |
2408-
SOF_TIMESTAMPING_RX_SOFTWARE |
2409-
SOF_TIMESTAMPING_SOFTWARE |
24102404
SOF_TIMESTAMPING_TX_HARDWARE |
24112405
SOF_TIMESTAMPING_RX_HARDWARE |
24122406
SOF_TIMESTAMPING_RAW_HARDWARE;

0 commit comments

Comments
 (0)