mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-24 19:40:21 +09:00
sfc: Check firmware supports Ethernet PTP filter
[ Upstream commitc4413a20fa] Not all firmware variants support RSS filters. Do not fail all PTP functionality when raw ethernet PTP filters fail to insert. Fixes:e4616f6472("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ea701e0eba
commit
85da5ec068
@@ -1387,7 +1387,8 @@ static int efx_ptp_insert_multicast_filters(struct efx_nic *efx)
|
||||
goto fail;
|
||||
|
||||
rc = efx_ptp_insert_eth_filter(efx);
|
||||
if (rc < 0)
|
||||
/* Not all firmware variants support this filter */
|
||||
if (rc < 0 && rc != -EPROTONOSUPPORT)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user