[source] ar71xx: add software transmit timestamp support

LEDE Commits lede-commits at lists.infradead.org
Fri Jul 15 05:20:18 PDT 2016


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=900da27c91990ce37642c491414736c9b84f73e4

commit 900da27c91990ce37642c491414736c9b84f73e4
Author: Stephen Walker <stephendwalker+github at gmail.com>
AuthorDate: Wed Jul 6 20:23:15 2016 -0400

    ar71xx: add software transmit timestamp support
    
    Add software transmit timestamp and ethtool (-T) timestamp support
    
    Signed-off-by: Stephen Walker <stephendwalker+github at gmail.com>
---
 .../ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c   | 1 +
 .../ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c      | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c
index 3395cab..dfcbb54 100644
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c
+++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_ethtool.c
@@ -127,4 +127,5 @@ struct ethtool_ops ag71xx_ethtool_ops = {
 	.get_ringparam	= ag71xx_ethtool_get_ringparam,
 	.set_ringparam	= ag71xx_ethtool_set_ringparam,
 	.get_link	= ethtool_op_get_link,
+	.get_ts_info	= ethtool_op_get_ts_info,
 };
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
index fc91b9f..a610406 100644
--- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
+++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
@@ -819,6 +819,8 @@ static netdev_tx_t ag71xx_hard_start_xmit(struct sk_buff *skb,
 
 	netdev_sent_queue(dev, skb->len);
 
+	skb_tx_timestamp(skb);
+
 	desc->ctrl &= ~DESC_EMPTY;
 	ring->curr += n;
 



More information about the lede-commits mailing list