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 9DCC942D88 for ; Thu, 29 Jun 2023 04:41:48 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8ECF642BAC; Thu, 29 Jun 2023 04:41:48 +0200 (CEST) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id 378BA406B7; Thu, 29 Jun 2023 04:41:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688006506; x=1719542506; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=hplCizOK8SL90gMm8VWg9axpkNUHsKLONmogP0swa90=; b=kwfBLqcE3Jk5TaavP8Zi0ioTfYs+qsO3ze4NRfgTgd9w5g7tsxlosKAq DHqPC26NEmhbiXPJhLUv0B+GsUiUvpHK12HUDV8jWUXJLfXh97L1RT2Dr Sd2roRDVZoDle8tg+DMX6eqwiBlCmdHIH/OiYuIV7dcpH9lgDT1zRJC1C z/5hwjIx8vN7313aDwUT+r/oLiOz5SgBSYpGstzukSBQxB3Ms9jPRfIjY W+hEd5xskcTB2a33xTJ9KtlW+UwdncRgrgGKbsTyj6Xy/+sQ7THiWjD7T ngJq3IIrEIUC9fn9hBCbiiORFDGtu0DlhTO+iUA8kYBLv0rqtXN67ox+m Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="428025744" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="428025744" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 19:41:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10755"; a="891246794" X-IronPort-AV: E=Sophos;i="6.01,167,1684825200"; d="scan'208";a="891246794" Received: from unknown (HELO root..) ([10.239.252.115]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jun 2023 19:41:40 -0700 From: Shiyang He To: dev@dpdk.org Cc: yidingx.zhou@intel.com, Shiyang He , stable@dpdk.org, Aman Singh , Yuying Zhang , Raslan Darawsheh Subject: [PATCH] app/testpmd: fix 32-bit system forwarding failure Date: Thu, 29 Jun 2023 10:09:55 +0000 Message-Id: <20230629100955.398660-1-shiyangx.he@intel.com> X-Mailer: git-send-email 2.37.2 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 l2_len is not calculated correctly on 32-bit systems, resulting in packet forwarding failure. This patch fixes this issue by changing the l2_len calculation. Fixes: dd827fa42a30 ("app/testpmd: fix GTP L2 length in checksum engine") Cc: stable@dpdk.org Signed-off-by: Shiyang He --- app/test-pmd/csumonly.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index 7af635e3f7..c103e54111 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -250,7 +250,7 @@ parse_gtp(struct rte_udp_hdr *udp_hdr, info->l4_proto = 0; } - info->l2_len += gtp_len + sizeof(udp_hdr); + info->l2_len += gtp_len + sizeof(*udp_hdr); } /* Parse a vxlan header */ -- 2.37.2