[PATCH v4 039/103] net/ice/base: use correct type

Anatoly Burakov anatoly.burakov at intel.com
Wed Jun 26 13:41:27 CEST 2024


From: Fabio Pricoco <fabio.pricoco at intel.com>

num_rules was defined u16 but it should be u8 as it is passed to
function ice_aq_sw_rules which expects u8.

Signed-off-by: Fabio Pricoco <fabio.pricoco at intel.com>
Signed-off-by: Ian Stokes <ian.stokes at intel.com>
---
 drivers/net/ice/base/ice_switch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ice/base/ice_switch.c b/drivers/net/ice/base/ice_switch.c
index b48f47c846..ac73630976 100644
--- a/drivers/net/ice/base/ice_switch.c
+++ b/drivers/net/ice/base/ice_switch.c
@@ -9420,7 +9420,7 @@ ice_add_adv_rule(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups,
 	struct ice_switch_info *sw;
 	u16 nb_lg_acts_mark = 1;
 	const u8 *pkt = NULL;
-	u16 num_rules = 1;
+	u8 num_rules = 1;
 	bool prof_rule;
 	u16 word_cnt;
 	u32 act = 0;
-- 
2.43.0



More information about the dev mailing list