net/bnxt: set HW coalescing parameters

Set coalescing parameters correctly for Rx completion rings.
This is not being done for the Rx completion rings currently.

Fixes: 657c2a7f1d ("net/bnxt: create aggregation rings when needed")
Cc: stable@dpdk.org

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
This commit is contained in:
Ajit Khaparde 2022-02-01 14:38:01 -08:00
parent 2d7cb94096
commit 5b9b3d5904

View File

@ -752,6 +752,8 @@ int bnxt_alloc_hwrm_rings(struct bnxt *bp)
rc = bnxt_alloc_hwrm_rx_ring(bp, i);
if (rc)
goto err_out;
bnxt_hwrm_set_ring_coal(bp, &coal,
rxq->cp_ring->cp_ring_struct->fw_ring_id);
}
/* If something is wrong with Rx ring alloc, skip Tx ring alloc */