ax88179_178a: add ethtool_op_get_ts_info()
authorAndreas K. Besslein <besslein.andreas@gmail.com>
Sat, 23 Nov 2019 21:04:47 +0000 (22:04 +0100)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 25 Nov 2019 02:40:54 +0000 (18:40 -0800)
This enables the use of SW timestamping.

ax88179_178a uses the usbnet transmit function usbnet_start_xmit() which
implements software timestamping. ax88179_178a overrides ethtool_ops but
missed to set .get_ts_info. This caused SOF_TIMESTAMPING_TX_SOFTWARE
capability to be not available.

Signed-off-by: Andreas K. Besslein <besslein.andreas@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
drivers/net/usb/ax88179_178a.c

index c5a6e75c24e3adce4b81cc7cf161b8e5888f1ca6..93044cf1417a53b3b53cb5c02fb93b6425d47a02 100644 (file)
@@ -827,6 +827,7 @@ static const struct ethtool_ops ax88179_ethtool_ops = {
        .nway_reset             = usbnet_nway_reset,
        .get_link_ksettings     = ax88179_get_link_ksettings,
        .set_link_ksettings     = ax88179_set_link_ksettings,
+       .get_ts_info            = ethtool_op_get_ts_info,
 };
 
 static void ax88179_set_multicast(struct net_device *net)