Skip to content

Commit

Permalink
ax88179_178a: add ethtool_op_get_ts_info()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andreas K. Besslein authored and Jakub Kicinski committed Nov 25, 2019
1 parent bd85880 commit dc83ef2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/usb/ax88179_178a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit dc83ef2

Please sign in to comment.