Skip to content

Commit

Permalink
net/bnxt: set HW coalescing parameters
Browse files Browse the repository at this point in the history
[ upstream commit 5b9b3d5 ]

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

Fixes: 657c2a7 ("net/bnxt: create aggregation rings when needed")

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>
  • Loading branch information
ajitkhaparde authored and kevintraynor committed Feb 21, 2022
1 parent 6c8ff52 commit e53da2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/bnxt/bnxt_ring.c
Expand Up @@ -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 */
Expand Down

0 comments on commit e53da2f

Please sign in to comment.