From: Abhishek Rawal Date: Tue, 14 Oct 2025 05:52:33 +0000 (+0530) Subject: r8152: Advertise software timestamp information. X-Git-Tag: v6.19-rc1~170^2~382 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a8e846b8d93de748485653dd8a6a8efd8f5d7613;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Jamie Bainbridge Reviewed-by: Vadim Fedorenko Link: https://patch.msgid.link/20251014055234.46527-1-rawal.abhishek92@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index 44cba7acfe7d9..f896e9f28c3b0 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -9311,6 +9311,7 @@ static const struct ethtool_ops ops = { .set_ringparam = rtl8152_set_ringparam, .get_pauseparam = rtl8152_get_pauseparam, .set_pauseparam = rtl8152_set_pauseparam, + .get_ts_info = ethtool_op_get_ts_info, }; static int rtl8152_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd)