OSDN Git Service

net: thunderx: add timestamping support
authorSunil Goutham <sgoutham@cavium.com>
Mon, 15 Jan 2018 12:44:57 +0000 (18:44 +0600)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Jan 2018 19:31:14 +0000 (14:31 -0500)
commit4a8755096466d1002236ac7293eae821b6de87ba
tree8eaf366be7af579511c08ba91d1f991d155f7ec7
parent8c56df372bc1371504bf3cc29fbb3c09967cafff
net: thunderx: add timestamping support

This adds timestamping support for both receive and transmit
paths. On the receive side no filters are supported i.e either
all pkts will get a timestamp appended infront of the packet or none.
On the transmit side HW doesn't support timestamp insertion but
only generates a separate CQE with transmitted packet's timestamp.
Also HW supports only one packet at a time for timestamping on the
transmit side.

Signed-off-by: Sunil Goutham <sgoutham@cavium.com>
Signed-off-by: Aleksey Makarov <aleksey.makarov@cavium.com>
Acked-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/Kconfig
drivers/net/ethernet/cavium/thunder/nic.h
drivers/net/ethernet/cavium/thunder/nic_main.c
drivers/net/ethernet/cavium/thunder/nic_reg.h
drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c
drivers/net/ethernet/cavium/thunder/nicvf_main.c
drivers/net/ethernet/cavium/thunder/nicvf_queues.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.c
drivers/net/ethernet/cavium/thunder/thunder_bgx.h