diff mbox series

[net] ax88179_178a: add ethtool_op_get_ts_info()

Message ID 20191123210447.GA8933@spectre (mailing list archive)
State Mainlined
Commit dc83ef22cdb483027f1bf0892e466433ec5299bf
Headers show
Series [net] ax88179_178a: add ethtool_op_get_ts_info() | expand

Commit Message

Andreas K. Besslein Nov. 23, 2019, 9:04 p.m. UTC
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.

Signed-off-by: Andreas K. Besslein <besslein.andreas@gmail.com>
---
 drivers/net/usb/ax88179_178a.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jakub Kicinski Nov. 25, 2019, 2:41 a.m. UTC | #1
On Sat, 23 Nov 2019 22:04:47 +0100, Andreas K. Besslein wrote:
> 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.
> 
> Signed-off-by: Andreas K. Besslein <besslein.andreas@gmail.com>

Applied, thanks!
diff mbox series

Patch

diff --git a/drivers/net/usb/ax88179_178a.c b/drivers/net/usb/ax88179_178a.c
index daa54486ab09..8bc44c3f7c45 100644
--- a/drivers/net/usb/ax88179_178a.c
+++ b/drivers/net/usb/ax88179_178a.c
@@ -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)