]> git.droids-corp.org - dpdk.git/commitdiff
net/cnxk: support mark pattern item type
authorSatheesh Paul <psatheesh@marvell.com>
Mon, 28 Feb 2022 04:53:22 +0000 (10:23 +0530)
committerJerin Jacob <jerinj@marvell.com>
Sun, 24 Apr 2022 03:52:58 +0000 (05:52 +0200)
Added support for RTE_FLOW_ITEM_TYPE_MARK. This item type
can be used to create ingress flow rules to match packets
from CPT's second pass packets.

Signed-off-by: Satheesh Paul <psatheesh@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
doc/guides/nics/cnxk.rst
doc/guides/nics/features/cnxk.ini
doc/guides/nics/features/cnxk_vec.ini
doc/guides/nics/features/cnxk_vf.ini
drivers/net/cnxk/cnxk_flow.c

index 31c801fa04c26f1d91226b8abdddf7b5b989f23d..34f6e4d8eeda84f6140f49c3797c1496024d169a 100644 (file)
@@ -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
 -------------------------------
 
index 0eba334eb438f8b72888f74f95a5650b2746a010..7cac8beb611d2819a215c14bfef2b10c7f4e4f94 100644 (file)
@@ -65,6 +65,7 @@ icmp                 = Y
 ipv4                 = Y
 ipv6                 = Y
 ipv6_ext             = Y
+mark                 = Y
 mpls                 = Y
 nvgre                = Y
 raw                  = Y
index df5f358a3eba6754455c93ba75146929ce4fd392..0803bb3c292fc4cd3009e412c859c995c0d1ae19 100644 (file)
@@ -61,6 +61,7 @@ icmp                 = Y
 ipv4                 = Y
 ipv6                 = Y
 ipv6_ext             = Y
+mark                 = Y
 mpls                 = Y
 nvgre                = Y
 raw                  = Y
index a78fbcada0b10da07441a9ca533bbb2bef7717f4..ed3e231c5fe2b8f38d134fcd2a553bf6a7214c58 100644 (file)
@@ -57,6 +57,7 @@ icmp                 = Y
 ipv4                 = Y
 ipv6                 = Y
 ipv6_ext             = Y
+mark                 = Y
 mpls                 = Y
 nvgre                = Y
 raw                  = Y
index 8763ca63d62927a724b9cb470e8aebb924710998..ff962c141d6f521170cb4afaec84a250e2e36646 100644 (file)
@@ -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,