DPDK patches and discussions
 help / color / mirror / Atom feed
From: "liufengjiang.0426" <liufengjiang.0426@bytedance.com>
To: dev@dpdk.org
Cc: maxime.coquelin@redhat.com, chenbo.xia@intel.com,
	zhangziqian.1@bytedance.com
Subject: [PATCH] net/virtio: fixed missing next flag when sending packets in packed mode
Date: Mon,  9 Oct 2023 21:06:09 +0800	[thread overview]
Message-ID: <20231009130609.2987-1-liufengjiang.0426@bytedance.com> (raw)

When the packets is sent in packed mode, and the packets data and
virtio-header are divided into two desc, set the next flag of virtio-header desc

Bugzilla ID: 1295
Fixes: 892dc798fa9c ("net/virtio: implement Tx path for packed queues")

Signed-off-by: liufengjiang.0426 <liufengjiang.0426@bytedance.com>
---
 drivers/net/virtio/virtqueue.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/virtio/virtqueue.h b/drivers/net/virtio/virtqueue.h
index 9d4aba11a3..4e9f2d0358 100644
--- a/drivers/net/virtio/virtqueue.h
+++ b/drivers/net/virtio/virtqueue.h
@@ -672,6 +672,7 @@ virtqueue_enqueue_xmit_packed(struct virtnet_tx *txvq, struct rte_mbuf *cookie,
 		 */
 		start_dp[idx].addr = txvq->hdr_mem + RTE_PTR_DIFF(&txr[idx].tx_hdr, txr);
 		start_dp[idx].len = vq->hw->vtnet_hdr_size;
+		head_flags |= VRING_DESC_F_NEXT;
 		hdr = (struct virtio_net_hdr *)&txr[idx].tx_hdr;
 		idx++;
 		if (idx >= vq->vq_nentries) {
-- 
2.37.0.windows.1


             reply	other threads:[~2023-10-09 13:06 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-09 13:06 liufengjiang.0426 [this message]
2023-10-10  2:08 ` [PATCH v2] " liufengjiang.0426
2023-10-10  7:12   ` Maxime Coquelin
2023-10-12 13:56     ` Maxime Coquelin
2023-10-17  6:01   ` [PATCH] " liufengjiang.0426
2023-10-17  7:04     ` Fengjiang Liu
2023-10-17  7:11 Fengjiang Liu
2023-10-17  7:26 Fengjiang Liu
2023-10-17  7:32 ` Maxime Coquelin
2023-10-25 12:24 ` Maxime Coquelin

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=20231009130609.2987-1-liufengjiang.0426@bytedance.com \
    --to=liufengjiang.0426@bytedance.com \
    --cc=chenbo.xia@intel.com \
    --cc=dev@dpdk.org \
    --cc=maxime.coquelin@redhat.com \
    --cc=zhangziqian.1@bytedance.com \
    /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).