[PATCH v3 059/129] net/ice/base: use correct type
Anatoly Burakov
anatoly.burakov at intel.com
Tue Jun 25 13:13:04 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 cca18db413..ac592fc3e8 100644
--- a/drivers/net/ice/base/ice_switch.c
+++ b/drivers/net/ice/base/ice_switch.c
@@ -9417,7 +9417,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