|
@@ -6292,6 +6292,8 @@ hwrm_func_qcaps_exit:
|
|
|
return rc;
|
|
|
}
|
|
|
|
|
|
+static int bnxt_hwrm_queue_qportcfg(struct bnxt *bp);
|
|
|
+
|
|
|
static int bnxt_hwrm_func_qcaps(struct bnxt *bp)
|
|
|
{
|
|
|
int rc;
|
|
@@ -6299,6 +6301,11 @@ static int bnxt_hwrm_func_qcaps(struct bnxt *bp)
|
|
|
rc = __bnxt_hwrm_func_qcaps(bp);
|
|
|
if (rc)
|
|
|
return rc;
|
|
|
+ rc = bnxt_hwrm_queue_qportcfg(bp);
|
|
|
+ if (rc) {
|
|
|
+ netdev_err(bp->dev, "hwrm query qportcfg failure rc: %d\n", rc);
|
|
|
+ return rc;
|
|
|
+ }
|
|
|
if (bp->hwrm_spec_code >= 0x10803) {
|
|
|
rc = bnxt_alloc_ctx_mem(bp);
|
|
|
if (rc)
|