]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
net: ethernet: update drivers to make both SW and HW TX timestamps
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 19 May 2017 15:52:41 +0000 (17:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 May 2017 17:37:32 +0000 (13:37 -0400)
commit74abc9b18f446d1a9e0602a71a22e5ffe8a2cd23
tree558123f0c9eebd3587869de6b568221847c674c3
parentb50a5c70ffa4fd6b6da324ab54c84adf48fb17d9
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>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c
drivers/net/ethernet/intel/e1000e/netdev.c
drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c