Skip to content

Commit a8e846b

Browse files
abhishek-rawalkuba-moo
authored andcommitted
r8152: Advertise software timestamp information.
Driver calls skb_tx_timestamp(skb) in rtl8152_start_xmit(), but does not advertise the capability in ethtool. Advertise software timestamp capabilities on struct ethtool_ops. Signed-off-by: Abhishek Rawal <[email protected]> Reviewed-by: Jamie Bainbridge <[email protected]> Reviewed-by: Vadim Fedorenko <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 4ca0514 commit a8e846b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/usb/r8152.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9311,6 +9311,7 @@ static const struct ethtool_ops ops = {
93119311
.set_ringparam = rtl8152_set_ringparam,
93129312
.get_pauseparam = rtl8152_get_pauseparam,
93139313
.set_pauseparam = rtl8152_set_pauseparam,
9314+
.get_ts_info = ethtool_op_get_ts_info,
93149315
};
93159316

93169317
static int rtl8152_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd)

0 commit comments

Comments
 (0)