sfc: add function to determine which TX timestamping method to use
authorMartin Habets <mhabets@solarflare.com>
Thu, 25 Jan 2018 17:24:56 +0000 (17:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jan 2018 21:05:14 +0000 (16:05 -0500)
commit9c3afb33ae587723d2acda044a352670ec8d5b82
tree60de7b57106b2fd3cfb7f25e70ae4ef8f2c1ad3b
parentb9b603d46d5aad1fb66fa007759193e82a50c680
sfc: add function to determine which TX timestamping method to use

Use MC capability MC_CMD_GET_CAPABILITIES_V2_OUT_TX_MAC_TIMESTAMPING to
 detect whether the NIC supports timestamping packets sent out the main
 datapath.

Signed-off-by: Martin Habets <mhabets@solarflare.com>
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/ptp.c