When device resets, it should not implement ACL initialization
which is only executed in DCF. This patch disable ACL init and
uninit when in DPDK PF only mode.
Fixes:
40d466fa9f76 ("net/ice: support ACL filter in DCF")
Signed-off-by: Simei Su <simei.su@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
struct ice_hw *hw = ICE_PF_TO_HW(pf);
struct ice_flow_parser *parser = &ice_acl_parser;
+ if (!ad->hw.dcf_enabled)
+ return 0;
+
ret = ice_acl_prof_alloc(hw);
if (ret) {
PMD_DRV_LOG(ERR, "Cannot allocate memory for "
struct ice_hw *hw = ICE_PF_TO_HW(pf);
struct ice_flow_parser *parser = &ice_acl_parser;
- ice_unregister_parser(parser, ad);
-
- ice_deinit_acl(pf);
- ice_acl_prof_free(hw);
+ if (ad->hw.dcf_enabled) {
+ ice_unregister_parser(parser, ad);
+ ice_deinit_acl(pf);
+ ice_acl_prof_free(hw);
+ }
}
static struct