[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230824164657.42379-1-alex.austin@amd.com>
Date: Thu, 24 Aug 2023 17:46:57 +0100
From: <alex.austin@....com>
To: <netdev@...r.kernel.org>, <linux-net-drivers@....com>,
<linux-kernel@...r.kernel.org>
CC: <davem@...emloft.net>, <edumazet@...gle.com>, <kuba@...nel.org>,
<pabeni@...hat.com>, <richardcochran@...il.com>, <ihuguet@...hat.com>,
<ecree.xilinx@...il.com>, <habetsm.xilinx@...il.com>, Alex Austin
<alex.austin@....com>
Subject: [PATCH net] sfc: Check firmware supports Ethernet PTP filter
From: Alex Austin <alex.austin@....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@....com>
Acked-by: Edward Cree <ecree.xilinx@...il.com>
Reviewed-by: Pieter Jansen van Vuuren <pieter.jansen-van-vuuren@....com>
---
drivers/net/ethernet/sfc/ptp.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
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;
}
--
2.17.1
Powered by blists - more mailing lists