From patchwork Wed Sep 4 08:04:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nithin Dabilpuram X-Patchwork-Id: 58551 X-Patchwork-Delegate: jerinj@marvell.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E41F81ECE5; Wed, 4 Sep 2019 10:04:49 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 4F5E71ECE5 for ; Wed, 4 Sep 2019 10:04:48 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x847xkhK012917 for ; Wed, 4 Sep 2019 01:04:47 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=pfpt0818; bh=11WPPmM/ASRwRmu2MNTdZswS5x4FVJGpGQbaSS6aRxM=; b=OyuUlOaNaEU0U0qAl48yR/b8jGMyXvLSUmhDSN3VcnaHkGK3yLipYxdF1VxRYz1Ps5W0 b6jN6HlJunIDITwOc/almWsrlJaU8trSRKe3EuSvTA47Dz0lB8DByyDRA0QI4h2bntqG 9s+cM405P/17oQ82kkqU1Z8ccWwU3Xjykc8K1vdTfJES2qA/zG6UvXX2tU4971B+abjo ybokfm8HfwszB8QCwumPj/q3ZZC2vQltsanWKLiYmPwf/66CIjqxVSOKKZA7aRujtV8A aqDMNh3MuFC8RaPJqg0Bdeqd+7k+wbfq2R1lOTrI64gBuLpPBw8LLeSFdtwqRbJjj55b bQ== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2uqrdmcytc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 04 Sep 2019 01:04:47 -0700 Received: from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Wed, 4 Sep 2019 01:04:44 -0700 Received: from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server id 15.0.1367.3 via Frontend Transport; Wed, 4 Sep 2019 01:04:44 -0700 Received: from hyd1588t430.marvell.com (unknown [10.29.52.204]) by maili.marvell.com (Postfix) with ESMTP id 307783F7041; Wed, 4 Sep 2019 01:04:41 -0700 (PDT) From: Nithin Dabilpuram To: Jerin Jacob , Nithin Dabilpuram , Kiran Kumar K CC: Date: Wed, 4 Sep 2019 13:34:32 +0530 Message-ID: <20190904080433.177220-2-ndabilpuram@marvell.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20190904080433.177220-1-ndabilpuram@marvell.com> References: <20190904080433.177220-1-ndabilpuram@marvell.com> MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.70,1.0.8 definitions=2019-09-04_01:2019-09-03,2019-09-04 signatures=0 Subject: [dpdk-dev] [PATCH 2/2] net/octeontx2: add ptype translation for ICMP6 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Update ptype translation logic with ICMP6 in both outer and inner layers. Signed-off-by: Nithin Dabilpuram --- drivers/net/octeontx2/otx2_lookup.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/octeontx2/otx2_lookup.c b/drivers/net/octeontx2/otx2_lookup.c index 13c26a9..fd0bc10 100644 --- a/drivers/net/octeontx2/otx2_lookup.c +++ b/drivers/net/octeontx2/otx2_lookup.c @@ -138,6 +138,7 @@ nix_create_non_tunnel_ptype_array(uint16_t *ptype) val |= RTE_PTYPE_L4_SCTP; break; case NPC_LT_LD_ICMP: + case NPC_LT_LD_ICMP6: val |= RTE_PTYPE_L4_ICMP; break; case NPC_LT_LD_IGMP: @@ -222,6 +223,7 @@ nix_create_tunnel_ptype_array(uint16_t *ptype) val |= TU_SHIFT(RTE_PTYPE_INNER_L4_SCTP); break; case NPC_LT_LH_TU_ICMP: + case NPC_LT_LH_TU_ICMP6: val |= TU_SHIFT(RTE_PTYPE_INNER_L4_ICMP); break; }