From patchwork Fri Jul 19 03:18:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kiran Kumar Kokkilagadda X-Patchwork-Id: 56747 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 7C43B2BA8; Fri, 19 Jul 2019 05:18:51 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 8EE05231E for ; Fri, 19 Jul 2019 05:18:49 +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 x6J3Bre0011829 for ; Thu, 18 Jul 2019 20:18:48 -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=pfpt0818; bh=CPoSP1x7qg5nj2MK+FM0G5la1GL8/C10veAbAoKf8l0=; b=T4a+bfOb1PvmYCtweuedriyZR0OZoJGsFqz3Db2w25dTFiOyGa7Gczn0Xvy2YWBV5eBO LrIvSez4fVbbNAa61BNw/4T20CDSoCLdh+eUj7OLdcht8ev3rcW5V0klsUOhGBjLrv67 keCGHmpGWnbtoxxp836M1xyelaloH6p2vQ26u2LTCGLmLx4aFZNvt8XZlOEXTy3ZSpDU ZO9ac7UZQbop/gdMss9W5Cfkb5AtQMt0F/VGs4amoLCgloEQYMRSaBlbD/5d0j/qVySs 7chXxU6DoJeuTtacQfDu7eTv8hDkkuWNiW4gud9yMvCVWW12TlfTzQBI482U/X6mcor4 2g== Received: from sc-exch04.marvell.com ([199.233.58.184]) by mx0b-0016f401.pphosted.com with ESMTP id 2ts0a2ev6e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Thu, 18 Jul 2019 20:18:48 -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; Thu, 18 Jul 2019 20:18:46 -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; Thu, 18 Jul 2019 20:18:46 -0700 Received: from localhost.localdomain (unknown [10.28.34.15]) by maili.marvell.com (Postfix) with ESMTP id B10963F7041; Thu, 18 Jul 2019 20:18:45 -0700 (PDT) From: To: CC: Kiran Kumar K Date: Fri, 19 Jul 2019 08:48:41 +0530 Message-ID: <20190719031841.10526-1-kirankumark@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-19_02:2019-07-18,2019-07-19 signatures=0 Subject: [dpdk-dev] [PATCH] net/octeontx2: add ipv6 ext parsing support 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" From: Kiran Kumar K Adding support for ipv6_ext header parsing in the octeontx2 flow. Signed-off-by: Kiran Kumar K Acked-by: Jerin Jacob --- doc/guides/nics/octeontx2.rst | 6 ++++-- drivers/net/octeontx2/otx2_flow_parse.c | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/doc/guides/nics/octeontx2.rst b/doc/guides/nics/octeontx2.rst index fbf4c4726..5f511feb7 100644 --- a/doc/guides/nics/octeontx2.rst +++ b/doc/guides/nics/octeontx2.rst @@ -262,9 +262,11 @@ Patterns: +----+--------------------------------+ | 19 | RTE_FLOW_ITEM_TYPE_VXLAN_GPE | +----+--------------------------------+ - | 20 | RTE_FLOW_ITEM_TYPE_VOID | + | 20 | RTE_FLOW_ITEM_TYPE_IPV6_EXT | +----+--------------------------------+ - | 21 | RTE_FLOW_ITEM_TYPE_ANY | + | 21 | RTE_FLOW_ITEM_TYPE_VOID | + +----+--------------------------------+ + | 22 | RTE_FLOW_ITEM_TYPE_ANY | +----+--------------------------------+ Actions: diff --git a/drivers/net/octeontx2/otx2_flow_parse.c b/drivers/net/octeontx2/otx2_flow_parse.c index 3e6f5b8df..6e65db8e4 100644 --- a/drivers/net/octeontx2/otx2_flow_parse.c +++ b/drivers/net/octeontx2/otx2_flow_parse.c @@ -517,6 +517,13 @@ otx2_flow_parse_lc(struct otx2_parse_state *pst) info.def_mask = &rte_flow_item_arp_eth_ipv4_mask; info.len = sizeof(struct rte_flow_item_arp_eth_ipv4); break; + case RTE_FLOW_ITEM_TYPE_IPV6_EXT: + lid = NPC_LID_LC; + lt = NPC_LT_LC_IP6_EXT; + info.def_mask = &rte_flow_item_ipv6_ext_mask; + info.len = sizeof(struct rte_flow_item_ipv6_ext); + info.hw_hdr_len = 40; + break; default: /* No match at this layer */ return 0;