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 9D30743CB8 for ; Fri, 15 Mar 2024 11:42:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4487442EF4; Fri, 15 Mar 2024 11:42:16 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by mails.dpdk.org (Postfix) with ESMTP id 5F08042ECF; Fri, 15 Mar 2024 11:42:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710499332; x=1742035332; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Cdz5/jUjreFlL8wSTtKucyDUKDaqTA0oZSGPZwogwzs=; b=DqlSMswS9hXUltHmLQd0wF/v4FR5ZgSlMb7eWYJhb5nmg+9jFuLF6b4Q p0GTUmoqM9mTQGSGBkOPmecw2NAo2HrxwPsaQ/So1apknYCTtUoOuvVxo +LhWXo+kv9rLkRsboMVVWwClL5vRpl0edKTJCN/7SuNzPYa25NEZsJ6rR 95VQ+Jp/HBYSKk95ZldnNFVPMZzIlYww6hpVOoSRsi9aneIpUe/n5EntG 8t0Cq9VCgVQxGnle2OxbYfFZyA2U2aktn4sv+TV2FYGrBH03/KFQHRnWI GTRPKdDCTK5/Cr8Y+Z03NLvMO+i8yefqXheLLCkhOQeTz8rH3Z+ncpHWG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="30806144" X-IronPort-AV: E=Sophos;i="6.07,128,1708416000"; d="scan'208";a="30806144" 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:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,128,1708416000"; d="scan'208";a="12534033" 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:09 -0700 From: Mingjin Ye To: dev@dpdk.org Cc: Mingjin Ye , stable@dpdk.org Subject: [PATCH 2/2] net/ice: Tx path check mbuf sub-segment Date: Fri, 15 Mar 2024 10:24:09 +0000 Message-Id: <20240315102409.1079521-3-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: 2a0244d611b4 ("net/ice: support mbuf checks in Tx path") Cc: stable@dpdk.org Signed-off-by: Mingjin Ye --- drivers/net/ice/ice_rxtx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_rxtx.c b/drivers/net/ice/ice_rxtx.c index 13aabe97a5..31a3a35c1d 100644 --- a/drivers/net/ice/ice_rxtx.c +++ b/drivers/net/ice/ice_rxtx.c @@ -3713,7 +3713,7 @@ ice_xmit_pkts_check(void *tx_queue, struct rte_mbuf **tx_pkts, uint16_t nb_pkts) ol_flags = mb->ol_flags; if ((adapter->devargs.mbuf_check & ICE_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