From patchwork Fri Mar 15 10:24:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingjin Ye X-Patchwork-Id: 138431 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B0A0143CB8; Fri, 15 Mar 2024 11:42:15 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4915D42ED1; Fri, 15 Mar 2024 11:42:12 +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 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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; From patchwork Fri Mar 15 10:24:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingjin Ye X-Patchwork-Id: 138432 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 900C543CB8; Fri, 15 Mar 2024 11:42:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DA9AC42EEB; Fri, 15 Mar 2024 11:42:14 +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 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-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 Tested-by: Li, HongboX --- 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;