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 38016A0350; Mon, 28 Feb 2022 05:53:45 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A731B41152; Mon, 28 Feb 2022 05:53:43 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by mails.dpdk.org (Postfix) with ESMTP id 7BB4D410FF for ; Mon, 28 Feb 2022 05:53:42 +0100 (CET) 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 21S24OEL006798 for ; Sun, 27 Feb 2022 20:53:42 -0800 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-transfer-encoding : content-type; s=pfpt0220; bh=hd3TRKiMorE8fH3i4LfnEkso4ZJhpSM2ty2xSx39wo0=; b=hoYqRlGqEdEQyAellGUx/eYs9+OPezLXO58yLITUQAjzXtEihu20ph5v42rwJzTf1yMx Wt5JVO/AovkdGELatKMx2qrsLRPJ+3eKWhHyBo3N63t9JGQMRK/p+aGndXJhvXPt+KVV a7caDVH++Q2eIvtsgJCeATgHeyjYhRHCrBvc3b0nImDCsqYJcsHdgvuyezZzGY3lSFPT ayVpCAGTXPJJeInuV/ZeqkZkhuLZNw7lkKi8ncx2LqY0JiWeH5GluEKMLiQZTbZs9vaA XwIXH1rWVfzDOOB57pSeTX6nl34HyYbnqgm+sBgvPckUWVI0L9PRMFUw7Lpw2kWtGZnL 8A== Received: from dc5-exch01.marvell.com ([199.233.59.181]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3egn96rf8g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Sun, 27 Feb 2022 20:53:41 -0800 Received: from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 27 Feb 2022 20:53:40 -0800 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sun, 27 Feb 2022 20:53:40 -0800 Received: from localhost.localdomain (unknown [10.28.34.33]) by maili.marvell.com (Postfix) with ESMTP id 1344C3F7118; Sun, 27 Feb 2022 20:53:37 -0800 (PST) From: To: Nithin Dabilpuram , Kiran Kumar K , Sunil Kumar Kori , Satha Rao CC: , Satheesh Paul Subject: [dpdk-dev] [PATCH 2/2] net/cnxk: support for mark pattern item type Date: Mon, 28 Feb 2022 10:23:22 +0530 Message-ID: <20220228045322.1841812-2-psatheesh@marvell.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20220228045322.1841812-1-psatheesh@marvell.com> References: <20220228045322.1841812-1-psatheesh@marvell.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: J8zzIMsNwCxn5ijCV4O0YL3DiG8Pa9qG X-Proofpoint-ORIG-GUID: J8zzIMsNwCxn5ijCV4O0YL3DiG8Pa9qG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.64.514 definitions=2022-02-28_01,2022-02-26_01,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 Added support for RTE_FLOW_ITEM_TYPE_MARK. This item type can be used to create ingress flow rules to match packets from CPT(second pass packets). Signed-off-by: Satheesh Paul --- doc/guides/nics/cnxk.rst | 7 +++++++ doc/guides/nics/features/cnxk.ini | 1 + doc/guides/nics/features/cnxk_vec.ini | 1 + doc/guides/nics/features/cnxk_vf.ini | 1 + drivers/net/cnxk/cnxk_flow.c | 4 +++- 5 files changed, 13 insertions(+), 1 deletion(-) diff --git a/doc/guides/nics/cnxk.rst b/doc/guides/nics/cnxk.rst index 31c801fa04..34f6e4d8ee 100644 --- a/doc/guides/nics/cnxk.rst +++ b/doc/guides/nics/cnxk.rst @@ -406,6 +406,13 @@ Example usage in testpmd:: testpmd> flow create 0 ingress pattern eth / raw relative is 0 pattern \ spec ab pattern mask ab offset is 4 / end actions queue index 1 / end +RTE Flow mark item support +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- ``RTE_FLOW_ITEM_TYPE_MARK`` can be used to create ingress flow rules to match + packets from CPT(second pass packets). When mark item type is used, it should + be the first item in the patterns specification. + Inline device support for CN10K ------------------------------- diff --git a/doc/guides/nics/features/cnxk.ini b/doc/guides/nics/features/cnxk.ini index 0eba334eb4..7cac8beb61 100644 --- a/doc/guides/nics/features/cnxk.ini +++ b/doc/guides/nics/features/cnxk.ini @@ -65,6 +65,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +mark = Y mpls = Y nvgre = Y raw = Y diff --git a/doc/guides/nics/features/cnxk_vec.ini b/doc/guides/nics/features/cnxk_vec.ini index df5f358a3e..0803bb3c29 100644 --- a/doc/guides/nics/features/cnxk_vec.ini +++ b/doc/guides/nics/features/cnxk_vec.ini @@ -61,6 +61,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +mark = Y mpls = Y nvgre = Y raw = Y diff --git a/doc/guides/nics/features/cnxk_vf.ini b/doc/guides/nics/features/cnxk_vf.ini index a78fbcada0..ed3e231c5f 100644 --- a/doc/guides/nics/features/cnxk_vf.ini +++ b/doc/guides/nics/features/cnxk_vf.ini @@ -57,6 +57,7 @@ icmp = Y ipv4 = Y ipv6 = Y ipv6_ext = Y +mark = Y mpls = Y nvgre = Y raw = Y diff --git a/drivers/net/cnxk/cnxk_flow.c b/drivers/net/cnxk/cnxk_flow.c index 8763ca63d6..ff962c141d 100644 --- a/drivers/net/cnxk/cnxk_flow.c +++ b/drivers/net/cnxk/cnxk_flow.c @@ -53,7 +53,9 @@ const struct cnxk_rte_flow_term_info term[] = { [RTE_FLOW_ITEM_TYPE_HIGIG2] = {ROC_NPC_ITEM_TYPE_HIGIG2, sizeof(struct rte_flow_item_higig2_hdr)}, [RTE_FLOW_ITEM_TYPE_RAW] = {ROC_NPC_ITEM_TYPE_RAW, - sizeof(struct rte_flow_item_raw)}}; + sizeof(struct rte_flow_item_raw)}, + [RTE_FLOW_ITEM_TYPE_MARK] = {ROC_NPC_ITEM_TYPE_MARK, + sizeof(struct rte_flow_item_mark)}}; static int npc_rss_action_validate(struct rte_eth_dev *eth_dev, -- 2.25.4