Skip to contentSkip to conversation

ice: properly alloc ICE_VSI_LB

PATCH Applied Michal Swiatkowski 3 participants 3 messages Feb 17, 2023 – Feb 20, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ice: properly alloc ICE_VSI_LB

Devlink reload patchset introduced regression. ICE_VSI_LB wasn't taken into account when doing default allocation. Fix it by adding a case for ICE_VSI_LB in ice_vsi_alloc_def().

Fixes 6624e780a577 ("ice: split ice_vsi_setup into smaller functions")
---
 drivers/net/ethernet/intel/ice/ice_lib.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ice/ice_lib.c +1 -0
index 5e81f7ae252c..3c41ebfc23d8 100644
@@ -627,6 +627,7 @@ ice_vsi_alloc_def(struct ice_vsi *vsi, struct ice_channel *ch)
 		vsi->next_base_q = ch->base_q;
 		break;
 	case ICE_VSI_VF:
+	case ICE_VSI_LB:
 		break;
 	default:
 		ice_vsi_free_arrays(vsi);
Signature · 1 line
2.36.1
Reviewed-by on v1 1/1
#1 lore raw

From: Michal Swiatkowski <[email protected]>
Date: Fri, 17 Feb 2023 11:50:17 +0100

Quoted 8 lines

Devlink reload patchset introduced regression. ICE_VSI_LB wasn't taken into account when doing default allocation. Fix it by adding a case for ICE_VSI_LB in ice_vsi_alloc_def().

Fixes 6624e780a577 ("ice: split ice_vsi_setup into smaller functions")

Too late for 'net-final' PR which did hit the main tree already and I believe there won't be any more until 6.2 is out, so expect it in 6.2.1 only :s

Quoted 9 lines
---
 drivers/net/ethernet/intel/ice/ice_lib.c | 1 +
 1 file changed, 1 insertion(+)
drivers/net/ethernet/intel/ice/ice_lib.c +0 -0
index 5e81f7ae252c..3c41ebfc23d8 100644

drivers/net/ethernet/intel/ice/ice_lib.c ice_vsi_alloc_def(struct ice_vsi *vsi, struct ice_channel *ch) · line 633

Quoted 7 lines
drivers/net/ethernet/intel/ice/ice_lib.c +1 -0
@@ -627,6 +627,7 @@ ice_vsi_alloc_def(struct ice_vsi *vsi, struct ice_channel *ch)
 		vsi->next_base_q = ch->base_q;
 		break;
 	case ICE_VSI_VF:
+	case ICE_VSI_LB:
 		break;
 	default:
 		ice_vsi_free_arrays(vsi);

Thanks,
Olek

#2 lore raw
In reply to Michal Swiatkowski
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 10 lines · On Fri, 17 Feb 2023 11:50:17 +0100 you wrote:

Devlink reload patchset introduced regression. ICE_VSI_LB wasn't taken into account when doing default allocation. Fix it by adding a case for ICE_VSI_LB in ice_vsi_alloc_def().

Fixes 6624e780a577 ("ice: split ice_vsi_setup into smaller functions")

[...]

Here is the summary with links:
- [net-next,v1] ice: properly alloc ICE_VSI_LB

    https://git.kernel.org/netdev/net-next/c/8173c2f9a1a4

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html