diff options
author | Miroslav Lichvar <mlichvar@redhat.com> | 2017-05-19 17:52:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-21 13:37:32 -0400 |
commit | 74abc9b18f446d1a9e0602a71a22e5ffe8a2cd23 (patch) | |
tree | 558123f0c9eebd3587869de6b568221847c674c3 /drivers/net/ethernet/samsung | |
parent | b50a5c70ffa4fd6b6da324ab54c84adf48fb17d9 (diff) | |
download | linux-stable-74abc9b18f446d1a9e0602a71a22e5ffe8a2cd23.tar.gz linux-stable-74abc9b18f446d1a9e0602a71a22e5ffe8a2cd23.tar.bz2 linux-stable-74abc9b18f446d1a9e0602a71a22e5ffe8a2cd23.zip |
net: ethernet: update drivers to make both SW and HW TX timestamps
Some drivers were calling the skb_tx_timestamp() function only when
a hardware timestamp was not requested. Now that applications can use
the SOF_TIMESTAMPING_OPT_TX_SWHW option to request both software and
hardware timestamps, the drivers need to be modified to unconditionally
call skb_tx_timestamp().
CC: Richard Cochran <richardcochran@gmail.com>
CC: Willem de Bruijn <willemb@google.com>
Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/samsung')
-rw-r--r-- | drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c index 1e594351a60f..89831adb8eb7 100644 --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c @@ -1418,8 +1418,7 @@ static netdev_tx_t sxgbe_xmit(struct sk_buff *skb, struct net_device *dev) priv->hw->desc->tx_enable_tstamp(first_desc); } - if (!tqueue->hwts_tx_en) - skb_tx_timestamp(skb); + skb_tx_timestamp(skb); priv->hw->dma->enable_dma_transmission(priv->ioaddr, txq_index); |