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 583D3A0C46; Mon, 16 Aug 2021 09:09:52 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DD22240143; Mon, 16 Aug 2021 09:09:51 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by mails.dpdk.org (Postfix) with ESMTP id 89C424003C; Mon, 16 Aug 2021 09:09:50 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.0.43) with SMTP id 17FNTDjD022798; Mon, 16 Aug 2021 00:09:49 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=pfpt0220; bh=5Ylak7lhYz2Px74wfvmXm6+wRxA++QwRHr+cSgUR0eQ=; b=dvhmoZBx9vKUp/QxcL4yGnNM1QW9jyRlYvJjcfaFb7fUAqtushlVbwTGm4VMGVBimkd2 N0wvrPjQwcbEBLyLNS+pZPL2drSnZozjbD5IheoavJzmq8X0FhYZVPjr9AhCh5LV3ZHH 74fBdyIjkTI33KmtLDKi2g3a/SJL79mRpJx8YLxwq7aH4HxkXrPy22HeNJUXqZ0PIgcH sN12N4/semTYMxBSQUBIZx6bCmeXvLIXcO6TE6Q+NdRGA6LMLwQILuQQmTuP1lmMahXt tsnZueV7lcXIQOLvCcpbofahDqy9zXt4P8kT9VUErYzG+m0N5Po46mD79QUv1XLYoRiO 8w== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0a-0016f401.pphosted.com with ESMTP id 3af0ptj3jy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 16 Aug 2021 00:09:49 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 16 Aug 2021 00:09:48 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 16 Aug 2021 00:09:48 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 508903F705D; Mon, 16 Aug 2021 00:09:46 -0700 (PDT) From: Nithin Dabilpuram To: Xiaoyun Li CC: , , Nithin Dabilpuram , , Date: Mon, 16 Aug 2021 12:39:41 +0530 Message-ID: <20210816070943.26807-1-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-GUID: 5391XVzsKXya7VvUtfmTxFj89_--2ALz X-Proofpoint-ORIG-GUID: 5391XVzsKXya7VvUtfmTxFj89_--2ALz X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475 definitions=2021-08-16_02,2021-08-13_02,2020-04-07_01 Subject: [dpdk-dev] [PATCH 1/2] app/testpmd: fix csumonly mode when run without outer chksum 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 Sender: "dev" Donot use outer metadata when neither outer ip checksum nor outer udp checksum is enabled. PMD's will ignore the outer_l2_len and outer_l3_len in cases where none of the outer checksum is enabled and hence only l2_len and l3_len will be used to calculate the offsets for L2 or L3 header. Fixes: 3c32113a1aac ("app/testpmd: fix IPv6 tunnel checksum") Cc: jia.guo@intel.com Cc: stable@dpdk.org Signed-off-by: Nithin Dabilpuram --- app/test-pmd/csumonly.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/test-pmd/csumonly.c b/app/test-pmd/csumonly.c index 607c889..38cc256 100644 --- a/app/test-pmd/csumonly.c +++ b/app/test-pmd/csumonly.c @@ -961,8 +961,7 @@ pkt_burst_checksum_forward(struct fwd_stream *fs) (tx_offloads & DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM) || (tx_offloads & - DEV_TX_OFFLOAD_OUTER_UDP_CKSUM) || - (tx_ol_flags & PKT_TX_OUTER_IPV6)) { + DEV_TX_OFFLOAD_OUTER_UDP_CKSUM)) { m->outer_l2_len = info.outer_l2_len; m->outer_l3_len = info.outer_l3_len; m->l2_len = info.l2_len; -- 2.8.4