summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Austin <alex.austin@amd.com>2023-08-24 17:46:57 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-09-13 09:42:35 +0200
commit85da5ec0681e05ffbde7b24b3f7750102ef55882 (patch)
tree25fa95ae6162917f42e59f0210ac1d626c3cc99d
parentea701e0eba7ef3a965d772e8ca89c22706c9835a (diff)
downloadlinux-stable-85da5ec0681e05ffbde7b24b3f7750102ef55882.tar.gz
linux-stable-85da5ec0681e05ffbde7b24b3f7750102ef55882.tar.bz2
linux-stable-85da5ec0681e05ffbde7b24b3f7750102ef55882.zip
sfc: Check firmware supports Ethernet PTP filter
[ Upstream commit c4413a20fa6d7c4888009fb7dd391685f196cd36 ] 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> 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>
-rw-r--r--drivers/net/ethernet/sfc/ptp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c
index eaef4a15008a..692c7f132e9f 100644
--- a/drivers/net/ethernet/sfc/ptp.c
+++ b/drivers/net/ethernet/sfc/ptp.c
@@ -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;
}