]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/qede/base/ecore_dev.c
net/qede: add PCI ids for new chip variant
[dpdk.git] / drivers / net / qede / base / ecore_dev.c
index 5a29c45bf8f772f2530fcded9ea2c430cce20ccc..03620d94963d1126dd54caa87cef5882a9b5986b 100644 (file)
@@ -2365,7 +2365,12 @@ static enum _ecore_status_t ecore_hw_get_resc(struct ecore_hwfn *p_hwfn,
 #endif
 
        for (res_id = 0; res_id < ECORE_MAX_RESC; res_id++) {
-               rc = ecore_hw_set_resc_info(p_hwfn, res_id, drv_resc_alloc);
+               /* @@@TMP for AH:
+                * Force the driver's default resource allocation in case there
+                * is a diff with the MFW allocation value.
+                */
+               rc = ecore_hw_set_resc_info(p_hwfn, res_id,
+                                           b_ah || drv_resc_alloc);
                if (rc != ECORE_SUCCESS)
                        return rc;
        }