sfc: Stop/re-start PTP when stopping/starting the datapath.
authorAlexandre Rames <arames@solarflare.com>
Fri, 8 Nov 2013 10:20:31 +0000 (10:20 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Fri, 6 Dec 2013 22:27:41 +0000 (22:27 +0000)
commit2ea4dc28a5bcec408e01a8772763871638a5ec79
treebb96ff4fdc285aa0ae708b22d2d7d31da2b0b1a9
parent35f9a7a380728a94d417e5824a866f969423ac83
sfc: Stop/re-start PTP when stopping/starting the datapath.

This disables PTP when we bring the interface down to avoid getting
unmatched RX timestamp events, and tries to re-enable it when bringing
the interface up.

[bwh: Make efx_ptp_stop() safe on Falcon. Introduce
 efx_ptp_{start,stop}_datapath() functions; we'll expand them later.]

Fixes: 7c236c43b838 ('sfc: Add support for IEEE-1588 PTP')
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/ptp.c