Skip to content

Commit c4413a2

Browse files
alexaust-xlnxkuba-moo
authored andcommitted
sfc: Check firmware supports Ethernet PTP filter
Not all firmware variants support RSS filters. Do not fail all PTP functionality when raw ethernet PTP filters fail to insert. Fixes: e4616f6 ("sfc: support PTP over Ethernet") Signed-off-by: Alex Austin <[email protected]> Acked-by: Edward Cree <[email protected]> Reviewed-by: Pieter Jansen van Vuuren <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent ac975af commit c4413a2

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/ethernet/sfc

1 file changed

+3
-1
lines changed

drivers/net/ethernet/sfc/ptp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1485,7 +1485,9 @@ static int efx_ptp_insert_multicast_filters(struct efx_nic *efx)
14851485
goto fail;
14861486

14871487
rc = efx_ptp_insert_eth_multicast_filter(efx);
1488-
if (rc < 0)
1488+
1489+
/* Not all firmware variants support this filter */
1490+
if (rc < 0 && rc != -EPROTONOSUPPORT)
14891491
goto fail;
14901492
}
14911493

0 commit comments

Comments
 (0)