patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [19.11] net/bnxt: fix vnic Rx queue cnt updation
@ 2020-12-02  9:27 Somnath Kotur
  2020-12-02 10:31 ` Luca Boccassi
  0 siblings, 1 reply; 2+ messages in thread
From: Somnath Kotur @ 2020-12-02  9:27 UTC (permalink / raw)
  To: stable; +Cc: luca.boccassi, Somnath Kotur

The vnic's Rx queue count needs to be updated while it is being
setup, this was missed during the backport

Fixes: c897ba654d92 ("net/bnxt: allow group ID 0 for RSS action")

Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
---
 drivers/net/bnxt/bnxt_ethdev.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
index 6b69172990..fc8532a464 100644
--- a/drivers/net/bnxt/bnxt_ethdev.c
+++ b/drivers/net/bnxt/bnxt_ethdev.c
@@ -296,8 +296,12 @@ static int bnxt_setup_one_vnic(struct bnxt *bp, uint16_t vnic_id)
 
 		if (BNXT_HAS_RING_GRPS(bp) && rxq->rx_deferred_start)
 			rxq->vnic->fw_grp_ids[j] = INVALID_HW_RING_ID;
+		else
+			vnic->rx_queue_cnt++;
 	}
 
+	PMD_DRV_LOG(DEBUG, "vnic->rx_queue_cnt = %d\n", vnic->rx_queue_cnt);
+
 	rc = bnxt_vnic_rss_configure(bp, vnic);
 	if (rc)
 		goto err_out;
-- 
2.28.0.497.g54e85e7


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-stable] [19.11] net/bnxt: fix vnic Rx queue cnt updation
  2020-12-02  9:27 [dpdk-stable] [19.11] net/bnxt: fix vnic Rx queue cnt updation Somnath Kotur
@ 2020-12-02 10:31 ` Luca Boccassi
  0 siblings, 0 replies; 2+ messages in thread
From: Luca Boccassi @ 2020-12-02 10:31 UTC (permalink / raw)
  To: Somnath Kotur, stable

On Wed, 2020-12-02 at 14:57 +0530, Somnath Kotur wrote:
> The vnic's Rx queue count needs to be updated while it is being
> setup, this was missed during the backport
> 
> Fixes: c897ba654d92 ("net/bnxt: allow group ID 0 for RSS action")
> 
> Signed-off-by: Somnath Kotur <somnath.kotur@broadcom.com>
> ---
>  drivers/net/bnxt/bnxt_ethdev.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/drivers/net/bnxt/bnxt_ethdev.c b/drivers/net/bnxt/bnxt_ethdev.c
> index 6b69172990..fc8532a464 100644
> --- a/drivers/net/bnxt/bnxt_ethdev.c
> +++ b/drivers/net/bnxt/bnxt_ethdev.c
> @@ -296,8 +296,12 @@ static int bnxt_setup_one_vnic(struct bnxt *bp, uint16_t vnic_id)
>  
>  		if (BNXT_HAS_RING_GRPS(bp) && rxq->rx_deferred_start)
>  			rxq->vnic->fw_grp_ids[j] = INVALID_HW_RING_ID;
> +		else
> +			vnic->rx_queue_cnt++;
>  	}
>  
> +	PMD_DRV_LOG(DEBUG, "vnic->rx_queue_cnt = %d\n", vnic->rx_queue_cnt);
> +
>  	rc = bnxt_vnic_rss_configure(bp, vnic);
>  	if (rc)
>  		goto err_out;

Acked-by: Luca Boccassi <bluca@debian.org>

Thanks, applied.

-- 
Kind regards,
Luca Boccassi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-02 10:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02  9:27 [dpdk-stable] [19.11] net/bnxt: fix vnic Rx queue cnt updation Somnath Kotur
2020-12-02 10:31 ` Luca Boccassi

patches for DPDK stable branches

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.dpdk.org/stable/0 stable/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 stable stable/ http://inbox.dpdk.org/stable \
		stable@dpdk.org
	public-inbox-index stable

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.dpdk.org/inbox.dpdk.stable


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git