sfc: Add support for IEEE-1588 PTP
Add PTP IEEE-1588 support and make accesible via the PHC subsystem. This work is based on prior code by Andrew Jackson Signed-off-by: Stuart Hodgson <smhodgson@solarflare.com> [bwh: - Add byte order conversion in efx_ptp_send_times() - Simplify conversion of PPS event times - Add the built-in vs module check to CONFIG_SFC_PTP dependencies] Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
This commit is contained in:

committed by
Ben Hutchings

parent
576eda8b08
commit
7c236c43b8
@@ -578,6 +578,11 @@ void efx_mcdi_process_event(struct efx_channel *channel,
|
||||
case MCDI_EVENT_CODE_FLR:
|
||||
efx_sriov_flr(efx, MCDI_EVENT_FIELD(*event, FLR_VF));
|
||||
break;
|
||||
case MCDI_EVENT_CODE_PTP_RX:
|
||||
case MCDI_EVENT_CODE_PTP_FAULT:
|
||||
case MCDI_EVENT_CODE_PTP_PPS:
|
||||
efx_ptp_event(efx, event);
|
||||
break;
|
||||
|
||||
default:
|
||||
netif_err(efx, hw, efx->net_dev, "Unknown MCDI event 0x%x\n",
|
||||
|
Reference in New Issue
Block a user