From: Stephen Walker Date: Thu, 7 Jul 2016 00:23:15 +0000 (-0400) Subject: ar71xx: add software transmit timestamp support X-Git-Tag: v17.01.0-rc1~2040 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=900da27c91990ce37642c491414736c9b84f73e4;p=oweals%2Fopenwrt.git ar71xx: add software transmit timestamp support Add software transmit timestamp and ethtool (-T) timestamp support Signed-off-by: Stephen Walker --- 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 3395cab1f7..dfcbb54e93 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 fc91b9f060..a610406502 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;