sfc: add transmit timestamping support
Subsystems (3)
PATCH v2 1/1 sfc: add transmit timestamping support
Add ethtool op to advertise TX timestamping. Insert a skb_tx_timestamp call in __efx_enqueue_skb.
Signed-off-by Izabela Bakollari <[email protected]>
Reviewed-by Edward Cree <[email protected]>
--- drivers/net/ethernet/sfc/ethtool.c | 2 ++ drivers/net/ethernet/sfc/tx.c | 2 ++ 2 files changed, 4 insertions(+)
drivers/net/ethernet/sfc/ethtool.c +2 -0
@@ -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 ; }
drivers/net/ethernet/sfc/tx.c +2 -0
@@ -371,6 +371,8 @@ netdev_tx_t __efx_enqueue_skb(struct efx_tx_queue *tx_queue, struct sk_buff *skbif (!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;
Signature · 1 line
2.51.0
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 9 lines · On Mon, 30 Mar 2026 08:32:35 +0200 you wrote:
Add ethtool op to advertise TX timestamping. Insert a
skb_tx_timestampcall in__efx_enqueue_skb.Signed-off-by Izabela Bakollari <[email protected]>Reviewed-by Edward Cree <[email protected]>--- 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!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html