net/bnxt: set HW coalescing parameters
PATCH 1/1 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 657c2a7f1dd4 ("net/bnxt: create aggregation rings when needed")
Signed-off-by Ajit Khaparde <[email protected]>
Signed-off-by Somnath Kotur <[email protected]>
Reviewed-by Kalesh AP <[email protected]>
--- drivers/net/bnxt/bnxt_ring.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/bnxt/bnxt_ring.c +2 -0
@@ -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 */
Signature · 1 line
2.32.0 (Apple Git-132)
Quoted 10 lines · Ajit Khaparde
Set coalescing parameters correctly for Rx completion rings. This is not being done for the Rx completion rings currently.
Fixes 657c2a7f1dd4 ("net/bnxt: create aggregation rings when needed")Signed-off-by Ajit Khaparde <[email protected]>Signed-off-by Somnath Kotur <[email protected]>Reviewed-by Kalesh AP <[email protected]>
Patch applied to dpdk-next-net-brcm.
Quoted 20 lines
--- drivers/net/bnxt/bnxt_ring.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/bnxt/bnxt_ring.c +2
-1@@ -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 */ --2.32.0 (Apple Git-132)