net/bnxt: set HW coalescing parameters

Message ID 20220209055746.88699-1-ajit.khaparde@broadcom.com (mailing list archive)
State Accepted, archived
Delegated to: Ajit Khaparde
Headers
Series net/bnxt: set HW coalescing parameters |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation success Compilation OK
ci/intel-Testing success Testing PASS
ci/github-robot: build success github build: passed
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-broadcom-Performance success Performance Testing PASS
ci/iol-broadcom-Functional success Functional Testing PASS
ci/iol-intel-Functional success Functional Testing PASS
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-aarch64-unit-testing success Testing PASS
ci/iol-x86_64-compile-testing success Testing PASS
ci/iol-abi-testing success Testing PASS
ci/iol-x86_64-unit-testing success Testing PASS

Commit Message

Ajit Khaparde Feb. 9, 2022, 5:57 a.m. UTC
  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")
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>
---
 drivers/net/bnxt/bnxt_ring.c | 2 ++
 1 file changed, 2 insertions(+)
  

Comments

Ajit Khaparde Feb. 9, 2022, 3:37 p.m. UTC | #1
On Tue, Feb 8, 2022 at 9:57 PM Ajit Khaparde <ajit.khaparde@broadcom.com> wrote:
>
> 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")
> 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>
Patch applied to dpdk-next-net-brcm.

> ---
>  drivers/net/bnxt/bnxt_ring.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/net/bnxt/bnxt_ring.c b/drivers/net/bnxt/bnxt_ring.c
> index 5c6c27fed7..4cdbb177d9 100644
> --- a/drivers/net/bnxt/bnxt_ring.c
> +++ b/drivers/net/bnxt/bnxt_ring.c
> @@ -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)
>
  

Patch

diff --git a/drivers/net/bnxt/bnxt_ring.c b/drivers/net/bnxt/bnxt_ring.c
index 5c6c27fed7..4cdbb177d9 100644
--- a/drivers/net/bnxt/bnxt_ring.c
+++ b/drivers/net/bnxt/bnxt_ring.c
@@ -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 */