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 D2137A050F; Wed, 27 Apr 2022 08:23:35 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id BB27340E78; Wed, 27 Apr 2022 08:23:35 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 00B8140691 for ; Wed, 27 Apr 2022 08:23:33 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 23QLapSn015982 for ; Tue, 26 Apr 2022 23:23:33 -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-transfer-encoding : content-type; s=pfpt0220; bh=+mWJBkVi5yqYxY41/c8QSGgQYKVYJrOrxZQLkCpW9e8=; b=NQErL2edhFY0cDNVyK2Ow+AxWYe2aq01f3Vbp19gPKZ/3EwnnB7Y26aHV3tmmf+mZWcc bI7zkX8/AXnTP4oTE9HFiY/Vnc5G1UOqMWqbfnGySt4mbu9vd399TQlRQfspSOlh4b3B +a/bwt2xhvUIYNdtkfYT40vLmGRFmPnpzfwZe3D4Hsx2ZL4afGdY6KxqUhTZU5cznp6i P0xtFTf2VsrM4H/84FLynpeC5SZ3/mfXnU+TvTb5uh91/8rvOrvgEl2xeNyZg1wZgraJ 89Le5gDhQwyBwdIqPZibb0hde2+XvWGyjpITyPMH5aFuTmw+VzV5z7ex/DCNxW7olRAX zg== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3fprt4hhch-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 26 Apr 2022 23:23:33 -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.2; Tue, 26 Apr 2022 23:23:31 -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; Tue, 26 Apr 2022 23:23:31 -0700 Received: from localhost.localdomain (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 1A23C5B6932; Tue, 26 Apr 2022 23:23:28 -0700 (PDT) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul Subject: [dpdk-dev] [PATCH 1/2] common/cnxk: support IPv6 fragment flow pattern item Date: Wed, 27 Apr 2022 11:53:19 +0530 Message-ID: <20220427062320.424570-1-psatheesh@marvell.com> X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: yd75KqT03D3NRnanerBYvRMqg0NUwvTI X-Proofpoint-GUID: yd75KqT03D3NRnanerBYvRMqg0NUwvTI X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-04-27_02,2022-04-26_02,2022-02-23_01 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 From: Satheesh Paul ROC changes to support RTE_FLOW_ITEM_TYPE_IPV6_FRAG_EXT flow pattern item. Signed-off-by: Satheesh Paul --- drivers/common/cnxk/roc_npc.h | 1 + drivers/common/cnxk/roc_npc_parse.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/drivers/common/cnxk/roc_npc.h b/drivers/common/cnxk/roc_npc.h index 723eadc649..3ba8a181df 100644 --- a/drivers/common/cnxk/roc_npc.h +++ b/drivers/common/cnxk/roc_npc.h @@ -15,6 +15,7 @@ enum roc_npc_item_type { ROC_NPC_ITEM_TYPE_E_TAG, ROC_NPC_ITEM_TYPE_IPV4, ROC_NPC_ITEM_TYPE_IPV6, + ROC_NPC_ITEM_TYPE_IPV6_FRAG_EXT, ROC_NPC_ITEM_TYPE_ARP_ETH_IPV4, ROC_NPC_ITEM_TYPE_MPLS, ROC_NPC_ITEM_TYPE_ICMP, diff --git a/drivers/common/cnxk/roc_npc_parse.c b/drivers/common/cnxk/roc_npc_parse.c index 1ce0dadfef..0748646779 100644 --- a/drivers/common/cnxk/roc_npc_parse.c +++ b/drivers/common/cnxk/roc_npc_parse.c @@ -594,6 +594,13 @@ npc_parse_lc(struct npc_parse_state *pst) info.len = pst->pattern->size; info.hw_hdr_len = 40; break; + case ROC_NPC_ITEM_TYPE_IPV6_FRAG_EXT: + lid = NPC_LID_LC; + lt = NPC_LT_LC_IP6_EXT; + flags = NPC_F_LC_U_IP6_FRAG; + info.len = pst->pattern->size; + info.hw_hdr_len = 40; + break; case ROC_NPC_ITEM_TYPE_L3_CUSTOM: lt = NPC_LT_LC_CUSTOM0; info.len = pst->pattern->size; -- 2.25.4