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 <alex.austin@amd.com> Acked-by: Edward Cree <ecree.xilinx@gmail.com> Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com> Link: https://lore.kernel.org/r/20230824164657.42379-1-alex.austin@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent ac975af commit c4413a2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • drivers/net/ethernet/sfc

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)