Skip to contentSkip to conversation

ax88179_178a: add ethtool_op_get_ts_info()

PATCH Applied Andreas K. Besslein 2 participants 2 messages Nov 23, 2019 – Nov 25, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ax88179_178a: add ethtool_op_get_ts_info()

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 capapility to be not available.

---
 drivers/net/usb/ax88179_178a.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/usb/ax88179_178a.c +1 -0
index daa54486ab09..8bc44c3f7c45 100644
@@ -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)
Signature · 1 line
2.20.1
#1 lore raw
Quoted 8 lines · Andreas K. Besslein

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 capapility to be not available.

Applied, thanks!