* [PATCH net-next v2] sfc: add transmit timestamping support
@ 2026-03-30 6:32 Izabela Bakollari
2026-04-01 2:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Izabela Bakollari @ 2026-03-30 6:32 UTC (permalink / raw)
To: Edward Cree, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni
Cc: netdev, linux-net-drivers, linux-kernel
Add ethtool op to advertise TX timestamping. Insert a
skb_tx_timestamp call in __efx_enqueue_skb.
Signed-off-by: Izabela Bakollari <ibakolla@redhat.com>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
---
drivers/net/ethernet/sfc/ethtool.c | 2 ++
drivers/net/ethernet/sfc/tx.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/drivers/net/ethernet/sfc/ethtool.c b/drivers/net/ethernet/sfc/ethtool.c
index 362388754a29..c0038b942913 100644
--- a/drivers/net/ethernet/sfc/ethtool.c
+++ b/drivers/net/ethernet/sfc/ethtool.c
@@ -231,6 +231,8 @@ static int efx_ethtool_get_ts_info(struct net_device *net_dev,
{
struct efx_nic *efx = efx_netdev_priv(net_dev);
+ ts_info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE;
+
efx_ptp_get_ts_info(efx, ts_info);
return 0;
}
diff --git a/drivers/net/ethernet/sfc/tx.c b/drivers/net/ethernet/sfc/tx.c
index 4dff19b6ef17..ea0fc1000476 100644
--- a/drivers/net/ethernet/sfc/tx.c
+++ b/drivers/net/ethernet/sfc/tx.c
@@ -371,6 +371,8 @@ netdev_tx_t __efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skb
if (!data_mapped && (efx_tx_map_data(tx_queue, skb, segments)))
goto err;
+ skb_tx_timestamp(skb);
+
efx_tx_maybe_stop_queue(tx_queue);
tx_queue->xmit_pending = true;
--
2.51.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH net-next v2] sfc: add transmit timestamping support
2026-03-30 6:32 [PATCH net-next v2] sfc: add transmit timestamping support Izabela Bakollari
@ 2026-04-01 2:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2026-04-01 2:20 UTC (permalink / raw)
To: Izabela Bakollari
Cc: ecree.xilinx, andrew+netdev, davem, edumazet, kuba, pabeni,
netdev, linux-net-drivers, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 30 Mar 2026 08:32:35 +0200 you wrote:
> Add ethtool op to advertise TX timestamping. Insert a
> skb_tx_timestamp call in __efx_enqueue_skb.
>
> Signed-off-by: Izabela Bakollari <ibakolla@redhat.com>
> Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
> ---
> drivers/net/ethernet/sfc/ethtool.c | 2 ++
> drivers/net/ethernet/sfc/tx.c | 2 ++
> 2 files changed, 4 insertions(+)
Here is the summary with links:
- [net-next,v2] sfc: add transmit timestamping support
https://git.kernel.org/netdev/net-next/c/6730f184abdc
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] 2+ messages in thread
end of thread, other threads:[~2026-04-01 2:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-30 6:32 [PATCH net-next v2] sfc: add transmit timestamping support Izabela Bakollari
2026-04-01 2:20 ` 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