Skip to contentSkip to conversation

net: bcmasp: enable SW timestamping

PATCH Applied Justin Chen 3 participants 3 messages Oct 10, 2024 – Oct 11, 2024

Subsystems (3)
lore
Share & tools
lore

Justin Chen

author maintainer
#0 lore raw

PATCH 1/1 net: bcmasp: enable SW timestamping

Add skb_tx_timestamp() call and enable support for SW timestamping.

---
 drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 1 +
 drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c    | 3 +++
 2 files changed, 4 insertions(+)
drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c +1 -0
index ca163c8e3729..67928b5d8a26 100644
@@ -496,4 +496,5 @@ const struct ethtool_ops bcmasp_ethtool_ops = {
 	.get_strings		= bcmasp_get_strings,
 	.get_ethtool_stats	= bcmasp_get_ethtool_stats,
 	.get_sset_count		= bcmasp_get_sset_count,
+	.get_ts_info		= ethtool_op_get_ts_info,
 };
drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c +3 -0
index 82768b0e9026..34f14d6059af 100644
@@ -364,6 +364,9 @@ static netdev_tx_t bcmasp_xmit(struct sk_buff *skb, struct net_device *dev)
 
 	intf->tx_spb_index = spb_index;
 	intf->tx_spb_dma_valid = valid;
+
+	skb_tx_timestamp(skb);
+
 	bcmasp_intf_tx_write(intf, intf->tx_spb_dma_valid);
 
 	if (tx_spb_ring_full(intf, MAX_SKB_FRAGS + 1))
Signature · 1 line
2.34.1
#2 lore raw
In reply to Justin Chen
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Thu, 10 Oct 2024 15:15:06 -0700 you wrote:

Add skb_tx_timestamp() call and enable support for SW timestamping.

---
 drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 1 +
 drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c    | 3 +++
 2 files changed, 4 insertions(+)

Here is the summary with links:
- [net-next] net: bcmasp: enable SW timestamping

    https://git.kernel.org/netdev/net-next/c/c531f2269a53

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html