DPDK patches and discussions
 help / color / mirror / Atom feed
From: Mingjin Ye <mingjinx.ye@intel.com>
To: dev@dpdk.org
Cc: Mingjin Ye <mingjinx.ye@intel.com>,
	stable@dpdk.org, Yuying Zhang <Yuying.Zhang@intel.com>
Subject: [PATCH 1/2] net/i40e: Tx path check mbuf sub-segment
Date: Fri, 15 Mar 2024 10:24:08 +0000	[thread overview]
Message-ID: <20240315102409.1079521-2-mingjinx.ye@intel.com> (raw)
In-Reply-To: <20240315102409.1079521-1-mingjinx.ye@intel.com>

Add check mbuf sub-segment to Tx diagnostic path.

Fixes: 82b03af55a1b ("net/i40e: support mbuf checks in Tx path")
Cc: stable@dpdk.org

Signed-off-by: Mingjin Ye <mingjinx.ye@intel.com>
---
 drivers/net/i40e/i40e_rxtx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/i40e/i40e_rxtx.c b/drivers/net/i40e/i40e_rxtx.c
index 5d25ab4d3a..2c69e96e4b 100644
--- a/drivers/net/i40e/i40e_rxtx.c
+++ b/drivers/net/i40e/i40e_rxtx.c
@@ -1554,7 +1554,7 @@ i40e_xmit_pkts_check(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts
 		ol_flags = mb->ol_flags;
 
 		if ((adapter->mbuf_check & I40E_MBUF_CHECK_F_TX_MBUF) &&
-		    (rte_mbuf_check(mb, 0, &reason) != 0)) {
+		    (rte_mbuf_check(mb, 1, &reason) != 0)) {
 			PMD_TX_LOG(ERR, "INVALID mbuf: %s\n", reason);
 			pkt_error = true;
 			break;
-- 
2.25.1


  reply	other threads:[~2024-03-15 10:42 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-15 10:24 [PATCH 0/2] " Mingjin Ye
2024-03-15 10:24 ` Mingjin Ye [this message]
2024-03-15 10:24 ` [PATCH 2/2] net/ice: " Mingjin Ye
2024-03-21  2:10   ` Li, HongboX
2024-03-19  9:39 ` [PATCH 0/2] " Li, HongboX
2024-04-04 10:12   ` Bruce Richardson

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=20240315102409.1079521-2-mingjinx.ye@intel.com \
    --to=mingjinx.ye@intel.com \
    --cc=Yuying.Zhang@intel.com \
    --cc=dev@dpdk.org \
    --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).