DPDK patches and discussions
 help / color / mirror / Atom feed
From: beilei.xing@intel.com
To: jingjing.wu@intel.com
Cc: dev@dpdk.org, Beilei Xing <beilei.xing@intel.com>, stable@dpdk.org
Subject: [PATCH] common/idpf: fix Rx queue configuration
Date: Thu, 23 Feb 2023 03:16:46 +0000	[thread overview]
Message-ID: <20230223031646.11222-1-beilei.xing@intel.com> (raw)

From: Beilei Xing <beilei.xing@intel.com>

IDPF PMD enables 2 buffer queues by default. According to the data
sheet, if there is a second buffer queue, the second buffer queue
is valid only if bugq2_ena is set.

Fixes: c2494d783d31 ("net/idpf: support queue start")
Fixes: 8b95ced47a13 ("common/idpf: add Rx/Tx queue structs")
Cc: stable@dpdk.org

Signed-off-by: Beilei Xing <beilei.xing@intel.com>
---
 drivers/common/idpf/idpf_common_virtchnl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/common/idpf/idpf_common_virtchnl.c b/drivers/common/idpf/idpf_common_virtchnl.c
index 99d9efbb7c..9ee7259539 100644
--- a/drivers/common/idpf/idpf_common_virtchnl.c
+++ b/drivers/common/idpf/idpf_common_virtchnl.c
@@ -987,6 +987,7 @@ idpf_vc_rxq_config(struct idpf_vport *vport, struct idpf_rx_queue *rxq)
 
 		rxq_info->ring_len = rxq->nb_rx_desc;
 		rxq_info->rx_bufq1_id = rxq->bufq1->queue_id;
+		rxq_info->bufq2_ena = 1;
 		rxq_info->rx_bufq2_id = rxq->bufq2->queue_id;
 		rxq_info->rx_buffer_low_watermark = 64;
 
-- 
2.26.2


             reply	other threads:[~2023-02-23  3:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-23  3:16 beilei.xing [this message]
2023-02-23  4:23 ` Wu, Jingjing
2023-02-24  2:36   ` Zhang, Qi Z

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230223031646.11222-1-beilei.xing@intel.com \
    --to=beilei.xing@intel.com \
    --cc=dev@dpdk.org \
    --cc=jingjing.wu@intel.com \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).