]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: handle TX timestamps in the normal data path
authorMartin Habets <mhabets@solarflare.com>
Thu, 25 Jan 2018 17:24:43 +0000 (17:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jan 2018 21:05:13 +0000 (16:05 -0500)
commit76daf5161c86990f3d5ceba2bd4b1fe7ad6bfdba
treed9d0a733ccd7ec6d78262c2ba5cbfce6023ed5cb
parent2f9908c2ae460543e9194fe98cda36b3a3b0d37b
sfc: handle TX timestamps in the normal data path

Before this work, TX timestamping is done by sending each SKB to the MC.
On the 8000 series (Medford1) we have high speed timestamping via the
 MAC, which means we can use normal TX queues for this without a
 significant drop in bandwidth.  On the X2000 series (Medford2) support
 for transmitting via the MC is removed, so the new way must be used.

This patch enables timestamping on a TX queue, if requested.
It also enhances TX event handling to process the extra completion events,
 and puts the time in the SKB.

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/ef10.c
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/ptp.c
drivers/net/ethernet/sfc/tx.c