Skip to content

Commit c531f22

Browse files
Ryceancurrykuba-moo
authored andcommitted
net: bcmasp: enable SW timestamping
Add skb_tx_timestamp() call and enable support for SW timestamping. Signed-off-by: Justin Chen <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ea22f8e commit c531f22

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/net/ethernet/broadcom/asp2/bcmasp_ethtool.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,4 +496,5 @@ const struct ethtool_ops bcmasp_ethtool_ops = {
496496
.get_strings = bcmasp_get_strings,
497497
.get_ethtool_stats = bcmasp_get_ethtool_stats,
498498
.get_sset_count = bcmasp_get_sset_count,
499+
.get_ts_info = ethtool_op_get_ts_info,
499500
};

drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,9 @@ static netdev_tx_t bcmasp_xmit(struct sk_buff *skb, struct net_device *dev)
364364

365365
intf->tx_spb_index = spb_index;
366366
intf->tx_spb_dma_valid = valid;
367+
368+
skb_tx_timestamp(skb);
369+
367370
bcmasp_intf_tx_write(intf, intf->tx_spb_dma_valid);
368371

369372
if (tx_spb_ring_full(intf, MAX_SKB_FRAGS + 1))

0 commit comments

Comments
 (0)