diff options
author | Arthur Kiyanovski <akiyano@amazon.com> | 2020-02-11 15:17:42 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-02-11 17:08:30 -0800 |
commit | cf6d17fde93bdda23c9b02dd5906a12bf8c55209 (patch) | |
tree | e96e4b722f1175954171962205128ffab42f36e7 /samples | |
parent | net: ena: fix uses of round_jiffies() (diff) | |
download | linux-dev-cf6d17fde93bdda23c9b02dd5906a12bf8c55209.tar.xz linux-dev-cf6d17fde93bdda23c9b02dd5906a12bf8c55209.zip |
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: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Ezequiel Lara Gomez <ezegomez@amazon.com>
Signed-off-by: Arthur Kiyanovski <akiyano@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions