sfc: Remove dependency of PTP on having a dedicated channel
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 15 Oct 2013 16:54:56 +0000 (17:54 +0100)
committerBen Hutchings <bhutchings@solarflare.com>
Thu, 12 Dec 2013 22:07:02 +0000 (22:07 +0000)
commitac36baf817c39fc9b53eff190f5901610c5dc5b7
treea600cefb96cfded628ec1f60bca5f36099654e18
parent62a1c703568b696c2775a9618840865751cd07d8
sfc: Remove dependency of PTP on having a dedicated channel

We need a dedicated channel on Siena to ensure we can match up
the separate RX and timestamp events for each PTP packet.  We won't
do this for EF10 as timestamps are delivered inline.

Pass a channel index of 0 to MC_CMD_PTP_OP_ENABLE when there is no
dedicated channel.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/ethernet/sfc/nic.h
drivers/net/ethernet/sfc/ptp.c
drivers/net/ethernet/sfc/siena.c