Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: mvneta: add support for hardware timestamps

Add support for hardware timestamps in (e.g.) the PHY by calling
skb_tx_timestamp() as close as reasonably possible to the point that
the hardware is instructed to send the queued packets.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1uwKHe-00000004glk-3nkJ@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Russell King and committed by
Jakub Kicinski
903e6d05 dc2f650f

+8
+8
drivers/net/ethernet/marvell/mvneta.c
··· 2984 2984 if (txq->count >= txq->tx_stop_threshold) 2985 2985 netif_tx_stop_queue(nq); 2986 2986 2987 + /* This is not really the true transmit point, since we batch 2988 + * up several before hitting the hardware, but is the best we 2989 + * can do without more complexity to walk the packets in the 2990 + * pending section of the transmit queue. 2991 + */ 2992 + skb_tx_timestamp(skb); 2993 + 2987 2994 if (!netdev_xmit_more() || netif_xmit_stopped(nq) || 2988 2995 txq->pending + frags > MVNETA_TXQ_DEC_SENT_MASK) 2989 2996 mvneta_txq_pend_desc_add(pp, txq, frags); ··· 5363 5356 .set_link_ksettings = mvneta_ethtool_set_link_ksettings, 5364 5357 .get_wol = mvneta_ethtool_get_wol, 5365 5358 .set_wol = mvneta_ethtool_set_wol, 5359 + .get_ts_info = ethtool_op_get_ts_info, 5366 5360 .get_eee = mvneta_ethtool_get_eee, 5367 5361 .set_eee = mvneta_ethtool_set_eee, 5368 5362 };