Message ID | 20230824164657.42379-1-alex.austin@amd.com (mailing list archive) |
---|---|
State | Accepted |
Commit | c4413a20fa6d7c4888009fb7dd391685f196cd36 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net] sfc: Check firmware supports Ethernet PTP filter | expand |
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski <kuba@kernel.org>: On Thu, 24 Aug 2023 17:46:57 +0100 you wrote: > From: Alex Austin <alex.austin@amd.com> > > Not all firmware variants support RSS filters. Do not fail all PTP > functionality when raw ethernet PTP filters fail to insert. > > Fixes: e4616f64726b ("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> > > [...] Here is the summary with links: - [net] sfc: Check firmware supports Ethernet PTP filter https://git.kernel.org/netdev/net/c/c4413a20fa6d You are awesome, thank you!
diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c index 0c40571133cb..00cf6de3bb2b 100644 --- a/drivers/net/ethernet/sfc/ptp.c +++ b/drivers/net/ethernet/sfc/ptp.c @@ -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; }