From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 65A55A04B1; Tue, 29 Sep 2020 19:56:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 697DA1D410; Tue, 29 Sep 2020 19:56:52 +0200 (CEST) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by dpdk.org (Postfix) with ESMTP id 45ED21D381 for ; Tue, 29 Sep 2020 19:56:50 +0200 (CEST) Received: by mail-io1-f66.google.com with SMTP id z25so5739199iol.10 for ; Tue, 29 Sep 2020 10:56:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vNwyV5QqS10KMdBBhvTeDrEkexF1DbY9iIXSZKnZbPw=; b=cpuPRedZFe9ktzhxbEDzYrU1CMFph1vAyEP1nyEKcyntA3YJ8xtg8NjICHcI6FjGqa O6yfqyYyL3LDsnY6kUSisxVUxSNDMDv2Et9ufesEdZ3+9fRlzV3s6kpKb66Mdd9oz8YP YBTiPC8DNBpDLfCIViMZl5IC4LOufLGtGC2ueTIdaK3nAtxQfHuVoufgerP456iNT5hA 6ykDPjwaDJjAxvpdNzI+pw6EF3LInxqSALWseGwHMGY4mKYSIttfNz3jNhQxCk1j4juf WzkwIrPeMVJcO7HZBGy2+SVVwf3gqqi6DctGflIBuj8D8iDEhCluFJvj2fQKX1+da+RG zL/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vNwyV5QqS10KMdBBhvTeDrEkexF1DbY9iIXSZKnZbPw=; b=h12QglgbkLs5BzzgPD0+A+6ZR03RxiRuxOT7YiQiPHNjDxD8qBdpB99yfsyAmK38F1 D0hP4ERkeUyfmE6bjm6V6vc6+1tcsWQryE3IM29Vn04ZYHygzyt9OBaI7Pfispe+xknG N+3lcFfGLTTjPh1GEytPeEUyrYPsSz/0a0HJpzzvstgrdd1ZxN0kAjXrjB68XanFxoOC EAn3L7vD1HSiRbNnMCQ7Z0h4qeH38WTpVp5Uz1wfG/q2AeKWs+A3XSkENoyWf/AILy6j ZVdd+zeMLqBu1J5cdpHsSf6GC3b54psK62NevEubu4rE9+Tm4U9a6eF4ygFfknw5YIc9 NMug== X-Gm-Message-State: AOAM531LOkJpsQaBbuMmYfuAT4A9HY6o4YcKLOSbhwojvfBO9LgSUgLa JV/iI9INrYTsgHPybkLebaB8cvG7RmsClzYFUBw= X-Google-Smtp-Source: ABdhPJww+oT+5xTnMgC9Zqx3Lc3bJEw1ZDsRS5xLkqEEuj/wcse8bxUBg3JQGMxQFg5TtKh6FdL3Ub4Dk/F+1BLJT5o= X-Received: by 2002:a02:c506:: with SMTP id s6mr3992337jam.104.1601402208533; Tue, 29 Sep 2020 10:56:48 -0700 (PDT) MIME-Version: 1.0 References: <20200827114042.475771-1-kirankumark@marvell.com> In-Reply-To: <20200827114042.475771-1-kirankumark@marvell.com> From: Jerin Jacob Date: Tue, 29 Sep 2020 23:26:32 +0530 Message-ID: To: Kiran Kumar K , Ferruh Yigit Cc: Jerin Jacob , Nithin Dabilpuram , dpdk-dev Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] net/octeontx2: move ESP parsing to LE layer 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" On Thu, Aug 27, 2020 at 5:11 PM wrote: > > From: Kiran Kumar K > > Add support to parse NAT-T-ESP by moving the ESP parsing > to LE. > > Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob Applied to dpdk-next-net-mrvl/main. Thanks > --- > drivers/common/octeontx2/hw/otx2_npc.h | 2 +- > drivers/net/octeontx2/otx2_flow_parse.c | 10 +++++----- > drivers/net/octeontx2/otx2_lookup.c | 6 +++--- > 3 files changed, 9 insertions(+), 9 deletions(-) > > diff --git a/drivers/common/octeontx2/hw/otx2_npc.h b/drivers/common/octeontx2/hw/otx2_npc.h > index efde1e214..45e60dfd5 100644 > --- a/drivers/common/octeontx2/hw/otx2_npc.h > +++ b/drivers/common/octeontx2/hw/otx2_npc.h > @@ -225,7 +225,6 @@ enum npc_kpu_ld_ltype { > NPC_LT_LD_SCTP, > NPC_LT_LD_ICMP6, > NPC_LT_LD_IGMP = 8, > - NPC_LT_LD_ESP, > NPC_LT_LD_AH, > NPC_LT_LD_GRE, > NPC_LT_LD_NVGRE, > @@ -237,6 +236,7 @@ enum npc_kpu_ld_ltype { > enum npc_kpu_le_ltype { > NPC_LT_LE_VXLAN = 1, > NPC_LT_LE_GENEVE, > + NPC_LT_LE_ESP, > NPC_LT_LE_GTPU = 4, > NPC_LT_LE_VXLANGPE, > NPC_LT_LE_GTPC, > diff --git a/drivers/net/octeontx2/otx2_flow_parse.c b/drivers/net/octeontx2/otx2_flow_parse.c > index 2d9a5857c..e918574df 100644 > --- a/drivers/net/octeontx2/otx2_flow_parse.c > +++ b/drivers/net/octeontx2/otx2_flow_parse.c > @@ -245,6 +245,11 @@ otx2_flow_parse_le(struct otx2_parse_state *pst) > info.len = sizeof(struct rte_flow_item_vxlan); > lt = NPC_LT_LE_VXLAN; > break; > + case RTE_FLOW_ITEM_TYPE_ESP: > + lt = NPC_LT_LE_ESP; > + info.def_mask = &rte_flow_item_esp_mask; > + info.len = sizeof(struct rte_flow_item_esp); > + break; > case RTE_FLOW_ITEM_TYPE_GTPC: > lflags = NPC_F_UDP_GTP_GTPC; > info.def_mask = &rte_flow_item_gtp_mask; > @@ -441,11 +446,6 @@ otx2_flow_parse_ld(struct otx2_parse_state *pst) > info.def_mask = &rte_flow_item_sctp_mask; > info.len = sizeof(struct rte_flow_item_sctp); > break; > - case RTE_FLOW_ITEM_TYPE_ESP: > - lt = NPC_LT_LD_ESP; > - info.def_mask = &rte_flow_item_esp_mask; > - info.len = sizeof(struct rte_flow_item_esp); > - break; > case RTE_FLOW_ITEM_TYPE_GRE: > lt = NPC_LT_LD_GRE; > info.def_mask = &rte_flow_item_gre_mask; > diff --git a/drivers/net/octeontx2/otx2_lookup.c b/drivers/net/octeontx2/otx2_lookup.c > index 10944bc17..14ea1cf79 100644 > --- a/drivers/net/octeontx2/otx2_lookup.c > +++ b/drivers/net/octeontx2/otx2_lookup.c > @@ -169,15 +169,15 @@ nix_create_non_tunnel_ptype_array(uint16_t *ptype) > case NPC_LT_LD_NVGRE: > val |= RTE_PTYPE_TUNNEL_NVGRE; > break; > - case NPC_LT_LD_ESP: > - val |= RTE_PTYPE_TUNNEL_ESP; > - break; > } > > switch (le) { > case NPC_LT_LE_VXLAN: > val |= RTE_PTYPE_TUNNEL_VXLAN; > break; > + case NPC_LT_LE_ESP: > + val |= RTE_PTYPE_TUNNEL_ESP; > + break; > case NPC_LT_LE_VXLANGPE: > val |= RTE_PTYPE_TUNNEL_VXLAN_GPE; > break; > -- > 2.25.1 >