Commit c4413a20 authored by Alex Austin's avatar Alex Austin Committed by Jakub Kicinski

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: e4616f64 ("sfc: support PTP over Ethernet")
Signed-off-by: default avatarAlex Austin <alex.austin@amd.com>
Acked-by: default avatarEdward Cree <ecree.xilinx@gmail.com>
Reviewed-by: default avatarPieter Jansen van Vuuren <pieter.jansen-van-vuuren@amd.com>
Link: https://lore.kernel.org/r/20230824164657.42379-1-alex.austin@amd.comSigned-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent ac975af5
......@@ -1485,7 +1485,9 @@ static int efx_ptp_insert_multicast_filters(struct efx_nic *efx)
goto fail;
rc = efx_ptp_insert_eth_multicast_filter(efx);
if (rc < 0)
/* Not all firmware variants support this filter */
if (rc < 0 && rc != -EPROTONOSUPPORT)
goto fail;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment