When calling into common parameter checks and subsequent action check
callbacks, the DCF path never supplied the `driver_ctx` struct, yet the
callback itself dereferenced the struct.
Fix it by supplying the DCF adapter struct as context.
Fixes: db24a8092854 ("net/ice: use common action checks for switch")
Cc: [email protected]
Signed-off-by: Anatoly Burakov <[email protected]>
---
drivers/net/intel/ice/ice_switch_filter.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/intel/ice/ice_switch_filter.c
b/drivers/net/intel/ice/ice_switch_filter.c
index 5d9e0062af..6f5af03f6a 100644
--- a/drivers/net/intel/ice/ice_switch_filter.c
+++ b/drivers/net/intel/ice/ice_switch_filter.c
@@ -1773,6 +1773,7 @@ ice_switch_parse_pattern_action(struct ice_adapter *ad,
},
.max_actions = 1,
.check = ice_switch_dcf_action_check,
+ .driver_ctx = container_of(ad, struct ice_dcf_adapter, parent),
};
struct ci_flow_actions_check_param param = {
.allowed_types = (enum rte_flow_action_type[]){
--
2.47.3