Skip to content

Commit 4c6d910

Browse files
gal-pressmandavem330
authored andcommitted
cxgb4: 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: Potnuri Bharat Teja <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 12283fa commit 4c6d910

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,12 +1556,9 @@ static int get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *ts
15561556
struct adapter *adapter = pi->adapter;
15571557

15581558
ts_info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE |
1559-
SOF_TIMESTAMPING_RX_SOFTWARE |
1560-
SOF_TIMESTAMPING_SOFTWARE;
1561-
1562-
ts_info->so_timestamping |= SOF_TIMESTAMPING_RX_HARDWARE |
1563-
SOF_TIMESTAMPING_TX_HARDWARE |
1564-
SOF_TIMESTAMPING_RAW_HARDWARE;
1559+
SOF_TIMESTAMPING_RX_HARDWARE |
1560+
SOF_TIMESTAMPING_TX_HARDWARE |
1561+
SOF_TIMESTAMPING_RAW_HARDWARE;
15651562

15661563
ts_info->tx_types = (1 << HWTSTAMP_TX_OFF) |
15671564
(1 << HWTSTAMP_TX_ON);
@@ -1575,8 +1572,6 @@ static int get_ts_info(struct net_device *dev, struct kernel_ethtool_ts_info *ts
15751572

15761573
if (adapter->ptp_clock)
15771574
ts_info->phc_index = ptp_clock_index(adapter->ptp_clock);
1578-
else
1579-
ts_info->phc_index = -1;
15801575

15811576
return 0;
15821577
}

0 commit comments

Comments
 (0)