From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B816C43CB8 for ; Fri, 15 Mar 2024 11:42:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A8D6042EE5; Fri, 15 Mar 2024 11:42:13 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id 7451E4025C; Fri, 15 Mar 2024 11:42:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710499330; x=1742035330; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=XLoPrnrRXjc2FIbkFIRl7dN2B+QvuCyINo78VoejY04=; b=AhYz+Xfo9Pc0WCnOYG91C93PEE6TmxCy2Rpu6REGKld57u1uaNGRwgry tZFJMHSliMfVflL/8i5vCsmAAFIJjnV0djiM36ZvoW5sZdq4yDYP1JeoF euk9mb50mqKQBFyNGWf+ILiTd5TBzMgA6bpof10C4q96Rvrrt5SsQTEBw pqtnwkpGWL0RW7y7C21UxpUb/UAi9mLUyYKqRm4MYbvp85Vb2hdpciyV2 d7/ncsTdN5vdps9Z1tGKJ/Ts+2aH+8yQiJoWgxDYaxdckgixlHvBmJk7w bhNMvZFZY+rVLFwEXwQb2cX38kyH/xRhO0S1NJwopIxyUmejwzDSTDvVi A==; X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="30806140" X-IronPort-AV: E=Sophos;i="6.07,128,1708416000"; d="scan'208";a="30806140" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2024 03:42:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,128,1708416000"; d="scan'208";a="12534029" Received: from unknown (HELO localhost.localdomain) ([10.239.252.253]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Mar 2024 03:42:07 -0700 From: Mingjin Ye To: dev@dpdk.org Cc: Mingjin Ye , stable@dpdk.org, Yuying Zhang Subject: [PATCH 1/2] net/i40e: Tx path check mbuf sub-segment Date: Fri, 15 Mar 2024 10:24:08 +0000 Message-Id: <20240315102409.1079521-2-mingjinx.ye@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240315102409.1079521-1-mingjinx.ye@intel.com> References: <20240315102409.1079521-1-mingjinx.ye@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org 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 --- 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