Skip to content

Commit cf6d17f

Browse files
akiyanodavem330
authored andcommitted
net: ena: add missing ethtool TX timestamping indication
Current implementation of the driver calls skb_tx_timestamp()to add a software tx timestamp to the skb, however the software-transmit capability is not reported in ethtool -T. This commit updates the ethtool structure to report the software-transmit capability in ethtool -T using the standard ethtool_op_get_ts_info(). This function reports all software timestamping capabilities (tx and rx), as well as setting phc_index = -1. phc_index is the index of the PTP hardware clock device that will be used for hardware timestamps. Since we don't have such a device in ENA, using the default -1 value is the correct setting. Fixes: 1738cd3 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)") Signed-off-by: Ezequiel Lara Gomez <[email protected]> Signed-off-by: Arthur Kiyanovski <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2a6e5fa commit cf6d17f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/amazon/ena/ena_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,6 +814,7 @@ static const struct ethtool_ops ena_ethtool_ops = {
814814
.set_channels = ena_set_channels,
815815
.get_tunable = ena_get_tunable,
816816
.set_tunable = ena_set_tunable,
817+
.get_ts_info = ethtool_op_get_ts_info,
817818
};
818819

819820
void ena_set_ethtool_ops(struct net_device *netdev)

0 commit comments

Comments
 (0)