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.

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 <ibakolla@redhat.com>
Reviewed-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://patch.msgid.link/20260330063236.247057-1-ibakolla@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Izabela Bakollari and committed by
Jakub Kicinski
6730f184 f843687c

+4
+2
drivers/net/ethernet/sfc/ethtool.c
··· 231 231 { 232 232 struct efx_nic *efx = efx_netdev_priv(net_dev); 233 233 234 + ts_info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE; 235 + 234 236 efx_ptp_get_ts_info(efx, ts_info); 235 237 return 0; 236 238 }
+2
drivers/net/ethernet/sfc/tx.c
··· 371 371 if (!data_mapped && (efx_tx_map_data(tx_queue, skb, segments))) 372 372 goto err; 373 373 374 + skb_tx_timestamp(skb); 375 + 374 376 efx_tx_maybe_stop_queue(tx_queue); 375 377 376 378 tx_queue->xmit_pending = true;