net/ark: fix kvargs memory leak
[dpdk.git] / drivers / net / qede / base / ecore_sp_commands.c
index fc47fc4..8fd64d7 100644 (file)
@@ -22,6 +22,7 @@
 #include "ecore_hw.h"
 #include "ecore_dcbx.h"
 #include "ecore_sriov.h"
+#include "ecore_vf.h"
 
 enum _ecore_status_t ecore_sp_init_request(struct ecore_hwfn *p_hwfn,
                                           struct ecore_spq_entry **pp_ent,
@@ -487,6 +488,9 @@ ecore_sp_pf_update_tunn_cfg(struct ecore_hwfn *p_hwfn,
        struct ecore_sp_init_data init_data;
        enum _ecore_status_t rc = ECORE_NOTIMPL;
 
+       if (IS_VF(p_hwfn->p_dev))
+               return ecore_vf_pf_tunnel_param_update(p_hwfn, p_tunn);
+
        if (ECORE_IS_BB_A0(p_hwfn->p_dev)) {
                DP_NOTICE(p_hwfn, true,
                          "A0 chip: tunnel pf update config is not supported\n");