ar71xx: add software transmit timestamp support

Add software transmit timestamp and ethtool (-T) timestamp support

Signed-off-by: Stephen Walker <stephendwalker+github@gmail.com>
This commit is contained in:
Stephen Walker 2016-07-06 20:23:15 -04:00 committed by Felix Fietkau
parent 207338c78e
commit 900da27c91
2 changed files with 3 additions and 0 deletions

View File

@ -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,
};

View File

@ -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;