[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241114122239.97600-1-michal.swiatkowski@linux.intel.com>
Date: Thu, 14 Nov 2024 13:22:39 +0100
From: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
To: michal.swiatkowski@...ux.intel.com
Cc: David.Laight@...LAB.COM,
horms@...nel.org,
intel-wired-lan@...ts.osuosl.org,
jacob.e.keller@...el.com,
jiri@...nulli.us,
konrad.knitter@...el.com,
marcin.szycik@...el.com,
mschmidt@...hat.com,
netdev@...r.kernel.org,
nex.sw.ncis.nat.hpm.dev@...el.com,
pawel.chmielewski@...el.com,
pio.raczynski@...il.com,
pmenzel@...gen.mpg.de,
przemyslaw.kitszel@...el.com,
rafal.romanowski@...el.com,
sridhar.samudrala@...el.com,
wojciech.drewek@...el.com
Subject: [iwl-next v8 9/9] ice: init flow director before RDMA
Flow director needs only one MSI-X. Load it before RDMA to save MSI-X
for it.
Reviewed-by: Jacob Keller <jacob.e.keller@...el.com>
Signed-off-by: Michal Swiatkowski <michal.swiatkowski@...ux.intel.com>
---
drivers/net/ethernet/intel/ice/ice_main.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/intel/ice/ice_main.c b/drivers/net/ethernet/intel/ice/ice_main.c
index a6f586f9bfd1..b6997481fd42 100644
--- a/drivers/net/ethernet/intel/ice/ice_main.c
+++ b/drivers/net/ethernet/intel/ice/ice_main.c
@@ -5175,11 +5175,12 @@ int ice_load(struct ice_pf *pf)
ice_napi_add(vsi);
+ ice_init_features(pf);
+
err = ice_init_rdma(pf);
if (err)
goto err_init_rdma;
- ice_init_features(pf);
ice_service_task_restart(pf);
clear_bit(ICE_DOWN, pf->state);
@@ -5187,6 +5188,7 @@ int ice_load(struct ice_pf *pf)
return 0;
err_init_rdma:
+ ice_deinit_features(pf);
ice_tc_indir_block_unregister(vsi);
err_tc_indir_block_register:
ice_unregister_netdev(vsi);
@@ -5210,8 +5212,8 @@ void ice_unload(struct ice_pf *pf)
devl_assert_locked(priv_to_devlink(pf));
- ice_deinit_features(pf);
ice_deinit_rdma(pf);
+ ice_deinit_features(pf);
ice_tc_indir_block_unregister(vsi);
ice_unregister_netdev(vsi);
ice_devlink_destroy_pf_port(pf);
--
2.42.0
Powered by blists - more mailing lists