]> git.baikalelectronics.ru Git - 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)
commit45dcce0f6e8de92d35ccad31748668fa533a6e08
tree558123f0c9eebd3587869de6b568221847c674c3
parent7022eeb65b5ca3b4354d750893fcc0b5345fc7e9
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