diff options
author | Edward Cree <ecree.xilinx@gmail.com> | 2023-08-15 16:57:28 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-08-17 11:31:07 -0700 |
commit | 54c9016eb8eda55952a195b071359cd13f50ed9b (patch) | |
tree | 27472a5e611b49968ce6ae8306468cfde075c272 | |
parent | fa165e1949976704500a442faeef8d9596faee76 (diff) | |
download | lwn-54c9016eb8eda55952a195b071359cd13f50ed9b.tar.gz lwn-54c9016eb8eda55952a195b071359cd13f50ed9b.zip |
sfc: don't fail probe if MAE/TC setup fails
Existing comment in the source explains why we don't want efx_init_tc()
failure to be fatal. Cited commit erroneously consolidated failure
paths causing the probe to be failed in this case.
Fixes: 7e056e2360d9 ("sfc: obtain device mac address based on firmware handle for ef100")
Reviewed-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: Edward Cree <ecree.xilinx@gmail.com>
Link: https://lore.kernel.org/r/aa7f589dd6028bd1ad49f0a85f37ab33c09b2b45.1692114888.git.ecree.xilinx@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/ethernet/sfc/ef100_nic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ef100_nic.c b/drivers/net/ethernet/sfc/ef100_nic.c index 7adde9639c8a..35d8e9811998 100644 --- a/drivers/net/ethernet/sfc/ef100_nic.c +++ b/drivers/net/ethernet/sfc/ef100_nic.c @@ -1194,7 +1194,7 @@ int ef100_probe_netdev_pf(struct efx_nic *efx) net_dev->features |= NETIF_F_HW_TC; efx->fixed_features |= NETIF_F_HW_TC; } - return rc; + return 0; } int ef100_probe_vf(struct efx_nic *efx) |