]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/qede/base/ecore_vf.c
net/qede/base: fix error code in resc allocation
[dpdk.git] / drivers / net / qede / base / ecore_vf.c
index be8b1ec4e2a562edd8ff2b0dd349ee6595847fc5..161b31764d50744ffbb3fabd819a752b47c3182f 100644 (file)
@@ -296,6 +296,14 @@ static enum _ecore_status_t ecore_vf_pf_acquire(struct ecore_hwfn *p_hwfn)
                                                VFPF_ACQUIRE_CAP_PRE_FP_HSI;
                                }
                        }
+
+                       /* If PF/VF are using same Major, PF must have had
+                        * it's reasons. Simply fail.
+                        */
+                       DP_NOTICE(p_hwfn, false,
+                                 "PF rejected acquisition by VF\n");
+                       rc = ECORE_INVAL;
+                       goto exit;
                } else {
                        DP_ERR(p_hwfn,
                               "PF returned err %d to VF acquisition request\n",