netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: bcmasp: enable SW timestamping
@ 2024-10-10 22:15 Justin Chen
  2024-10-10 22:20 ` Florian Fainelli
  2024-10-11 23:10 ` patchwork-bot+netdevbpf
  0 siblings, 2 replies; 3+ messages in thread
From: Justin Chen @ 2024-10-10 22:15 UTC (permalink / raw)
  To: netdev
  Cc: bcm-kernel-feedback-list, pabeni, kuba, edumazet, davem,
	florian.fainelli, Justin Chen

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

Signed-off-by: Justin Chen <justin.chen@broadcom.com>
---
 drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c | 1 +
 drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c    | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c b/drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
index ca163c8e3729..67928b5d8a26 100644
--- a/drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
+++ b/drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c
@@ -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,
 };
diff --git a/drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c b/drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
index 82768b0e9026..34f14d6059af 100644
--- a/drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
+++ b/drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c
@@ -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))
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: bcmasp: enable SW timestamping
  2024-10-10 22:15 [PATCH net-next] net: bcmasp: enable SW timestamping Justin Chen
@ 2024-10-10 22:20 ` Florian Fainelli
  2024-10-11 23:10 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2024-10-10 22:20 UTC (permalink / raw)
  To: Justin Chen, netdev
  Cc: bcm-kernel-feedback-list, pabeni, kuba, edumazet, davem

On 10/10/24 15:15, Justin Chen wrote:
> Add skb_tx_timestamp() call and enable support for SW
> timestamping.
> 
> Signed-off-by: Justin Chen <justin.chen@broadcom.com>

Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
-- 
Florian

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH net-next] net: bcmasp: enable SW timestamping
  2024-10-10 22:15 [PATCH net-next] net: bcmasp: enable SW timestamping Justin Chen
  2024-10-10 22:20 ` Florian Fainelli
@ 2024-10-11 23:10 ` patchwork-bot+netdevbpf
  1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-10-11 23:10 UTC (permalink / raw)
  To: Justin Chen
  Cc: netdev, bcm-kernel-feedback-list, pabeni, kuba, edumazet, davem,
	florian.fainelli

Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Thu, 10 Oct 2024 15:15:06 -0700 you wrote:
> Add skb_tx_timestamp() call and enable support for SW
> timestamping.
> 
> Signed-off-by: Justin Chen <justin.chen@broadcom.com>
> ---
>  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!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-10-11 23:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-10 22:15 [PATCH net-next] net: bcmasp: enable SW timestamping Justin Chen
2024-10-10 22:20 ` Florian Fainelli
2024-10-11 23:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).