get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/64276/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 64276,
    "url": "https://patches.dpdk.org/api/patches/64276/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200107153946.6876-2-rory.sexton@intel.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20200107153946.6876-2-rory.sexton@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200107153946.6876-2-rory.sexton@intel.com",
    "date": "2020-01-07T15:39:46",
    "name": "[v3,2/2] net/i40e: support FDIR for L2TPv3 over IP",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "19ce1235d7b23a730c6499aac157c3fcb1e41432",
    "submitter": {
        "id": 619,
        "url": "https://patches.dpdk.org/api/people/619/?format=api",
        "name": "Sexton, Rory",
        "email": "rory.sexton@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200107153946.6876-2-rory.sexton@intel.com/mbox/",
    "series": [
        {
            "id": 8007,
            "url": "https://patches.dpdk.org/api/series/8007/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=8007",
            "date": "2020-01-07T15:39:45",
            "name": "[v3,1/2] ethdev: add L2TPv3 over IP header to flow API",
            "version": 3,
            "mbox": "https://patches.dpdk.org/series/8007/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/64276/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/64276/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1F31CA04F3;\n\tTue,  7 Jan 2020 16:45:00 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 513FF1D9E8;\n\tTue,  7 Jan 2020 16:44:57 +0100 (CET)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by dpdk.org (Postfix) with ESMTP id B9DBF1D9E5\n for <dev@dpdk.org>; Tue,  7 Jan 2020 16:44:54 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n 07 Jan 2020 07:44:54 -0800",
            "from silpixa00399483.ir.intel.com (HELO\n silpixa00399483.ger.corp.intel.com) ([10.237.223.172])\n by fmsmga008.fm.intel.com with ESMTP; 07 Jan 2020 07:44:52 -0800"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.69,406,1571727600\"; d=\"scan'208\";a=\"217779445\"",
        "From": "Rory Sexton <rory.sexton@intel.com>",
        "To": "dev@dpdk.org, qi.z.zhang@intel.com, beilei.xing@intel.com,\n adrien.mazarguil@6wind.com, orika@mellanox.com",
        "Cc": "Rory Sexton <rory.sexton@intel.com>,\n Dariusz Jagus <dariuszx.jagus@intel.com>",
        "Date": "Tue,  7 Jan 2020 15:39:46 +0000",
        "Message-Id": "<20200107153946.6876-2-rory.sexton@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200107153946.6876-1-rory.sexton@intel.com>",
        "References": "<20200107153946.6876-1-rory.sexton@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 2/2] net/i40e: support FDIR for L2TPv3 over IP",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Adding FDIR support for L2TPv3 over IP header matching and adding\na new customized pctype for l2tpv3 over IP.\n\nSigned-off-by: Rory Sexton <rory.sexton@intel.com>\nSigned-off-by: Dariusz Jagus <dariuszx.jagus@intel.com>\n---\nv3 changes:\n* removing testpmd doc update as this patch focus only on i40e PMD\n* remove unused structure from i40e_ethdev.h\n---\n drivers/net/i40e/i40e_ethdev.c | 11 ++++++-\n drivers/net/i40e/i40e_ethdev.h | 43 +++++++++++++++++--------\n drivers/net/i40e/i40e_fdir.c   | 40 +++++++++++++++++++++---\n drivers/net/i40e/i40e_flow.c   | 57 ++++++++++++++++++++++++++++++++++\n 4 files changed, 132 insertions(+), 19 deletions(-)",
    "diff": "diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c\nindex 5999c964b..80a46916c 100644\n--- a/drivers/net/i40e/i40e_ethdev.c\n+++ b/drivers/net/i40e/i40e_ethdev.c\n@@ -12351,6 +12351,14 @@ i40e_update_customized_pctype(struct rte_eth_dev *dev, uint8_t *pkg,\n \t\t\tnew_pctype =\n \t\t\t\ti40e_find_customized_pctype(pf,\n \t\t\t\t\t\t      I40E_CUSTOMIZED_GTPU);\n+\t\telse if (!strcmp(name, \"IPV4_L2TPV3\"))\n+\t\t\tnew_pctype =\n+\t\t\t\ti40e_find_customized_pctype(pf,\n+\t\t\t\t\t\tI40E_CUSTOMIZED_IPV4_L2TPV3);\n+\t\telse if (!strcmp(name, \"IPV6_L2TPV3\"))\n+\t\t\tnew_pctype =\n+\t\t\t\ti40e_find_customized_pctype(pf,\n+\t\t\t\t\t\tI40E_CUSTOMIZED_IPV6_L2TPV3);\n \t\tif (new_pctype) {\n \t\t\tif (op == RTE_PMD_I40E_PKG_OP_WR_ADD) {\n \t\t\t\tnew_pctype->pctype = pctype_value;\n@@ -12544,7 +12552,8 @@ i40e_update_customized_ptype(struct rte_eth_dev *dev, uint8_t *pkg,\n \t\t\t\t\t\tRTE_PTYPE_TUNNEL_GRENAT;\n \t\t\t\t\tin_tunnel = true;\n \t\t\t\t} else if (!strncasecmp(name, \"L2TPV2CTL\", 9) ||\n-\t\t\t\t\t   !strncasecmp(name, \"L2TPV2\", 6)) {\n+\t\t\t\t\t   !strncasecmp(name, \"L2TPV2\", 6) ||\n+\t\t\t\t\t   !strncasecmp(name, \"L2TPV3\", 6)) {\n \t\t\t\t\tptype_mapping[i].sw_ptype |=\n \t\t\t\t\t\tRTE_PTYPE_TUNNEL_L2TP;\n \t\t\t\t\tin_tunnel = true;\ndiff --git a/drivers/net/i40e/i40e_ethdev.h b/drivers/net/i40e/i40e_ethdev.h\nindex 295ad593b..bba2b83b4 100644\n--- a/drivers/net/i40e/i40e_ethdev.h\n+++ b/drivers/net/i40e/i40e_ethdev.h\n@@ -508,24 +508,38 @@ struct i40e_raw_flow {\n \tuint32_t length;\n };\n \n+/* A structure used to define the input for L2TPv3 over IPv4 flow */\n+struct i40e_ipv4_l2tpv3oip_flow {\n+\tstruct rte_eth_ipv4_flow ip4;\n+\tuint32_t session_id; /* Session ID in big endian. */\n+};\n+\n+/* A structure used to define the input for L2TPv3 over IPv6 flow */\n+struct i40e_ipv6_l2tpv3oip_flow {\n+\tstruct rte_eth_ipv6_flow ip6;\n+\tuint32_t session_id; /* Session ID in big endian. */\n+};\n+\n /*\n  * A union contains the inputs for all types of flow\n  * items in flows need to be in big endian\n  */\n union i40e_fdir_flow {\n-\tstruct rte_eth_l2_flow     l2_flow;\n-\tstruct rte_eth_udpv4_flow  udp4_flow;\n-\tstruct rte_eth_tcpv4_flow  tcp4_flow;\n-\tstruct rte_eth_sctpv4_flow sctp4_flow;\n-\tstruct rte_eth_ipv4_flow   ip4_flow;\n-\tstruct rte_eth_udpv6_flow  udp6_flow;\n-\tstruct rte_eth_tcpv6_flow  tcp6_flow;\n-\tstruct rte_eth_sctpv6_flow sctp6_flow;\n-\tstruct rte_eth_ipv6_flow   ipv6_flow;\n-\tstruct i40e_gtp_flow       gtp_flow;\n-\tstruct i40e_gtp_ipv4_flow  gtp_ipv4_flow;\n-\tstruct i40e_gtp_ipv6_flow  gtp_ipv6_flow;\n-\tstruct i40e_raw_flow       raw_flow;\n+\tstruct rte_eth_l2_flow          l2_flow;\n+\tstruct rte_eth_udpv4_flow       udp4_flow;\n+\tstruct rte_eth_tcpv4_flow       tcp4_flow;\n+\tstruct rte_eth_sctpv4_flow      sctp4_flow;\n+\tstruct rte_eth_ipv4_flow        ip4_flow;\n+\tstruct rte_eth_udpv6_flow       udp6_flow;\n+\tstruct rte_eth_tcpv6_flow       tcp6_flow;\n+\tstruct rte_eth_sctpv6_flow      sctp6_flow;\n+\tstruct rte_eth_ipv6_flow        ipv6_flow;\n+\tstruct i40e_gtp_flow            gtp_flow;\n+\tstruct i40e_gtp_ipv4_flow       gtp_ipv4_flow;\n+\tstruct i40e_gtp_ipv6_flow       gtp_ipv6_flow;\n+\tstruct i40e_raw_flow            raw_flow;\n+\tstruct i40e_ipv4_l2tpv3oip_flow ip4_l2tpv3oip_flow;\n+\tstruct i40e_ipv6_l2tpv3oip_flow ip6_l2tpv3oip_flow;\n };\n \n enum i40e_fdir_ip_type {\n@@ -542,6 +556,7 @@ struct i40e_fdir_flow_ext {\n \tuint16_t dst_id; /* VF ID, available when is_vf is 1*/\n \tbool inner_ip;   /* If there is inner ip */\n \tenum i40e_fdir_ip_type iip_type; /* ip type for inner ip */\n+\tenum i40e_fdir_ip_type oip_type; /* ip type for outer ip */\n \tbool customized_pctype; /* If customized pctype is used */\n \tbool pkt_template; /* If raw packet template is used */\n };\n@@ -897,6 +912,8 @@ enum i40e_new_pctype {\n \tI40E_CUSTOMIZED_GTPU_IPV4,\n \tI40E_CUSTOMIZED_GTPU_IPV6,\n \tI40E_CUSTOMIZED_GTPU,\n+\tI40E_CUSTOMIZED_IPV4_L2TPV3,\n+\tI40E_CUSTOMIZED_IPV6_L2TPV3,\n \tI40E_CUSTOMIZED_MAX,\n };\n \ndiff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c\nindex dee007daa..2fc099517 100644\n--- a/drivers/net/i40e/i40e_fdir.c\n+++ b/drivers/net/i40e/i40e_fdir.c\n@@ -33,6 +33,10 @@\n #define IPV6_ADDR_LEN              16\n #endif\n \n+#ifndef IPPROTO_L2TP\n+#define IPPROTO_L2TP\t\t  115\n+#endif\n+\n #define I40E_FDIR_PKT_LEN                   512\n #define I40E_FDIR_IP_DEFAULT_LEN            420\n #define I40E_FDIR_IP_DEFAULT_TTL            0x40\n@@ -1026,7 +1030,12 @@ i40e_flow_fdir_fill_eth_ip_head(struct i40e_pf *pf,\n \t\t pctype == I40E_FILTER_PCTYPE_NONF_IPV4_SCTP ||\n \t\t pctype == I40E_FILTER_PCTYPE_NONF_IPV4_OTHER ||\n \t\t pctype == I40E_FILTER_PCTYPE_FRAG_IPV4 ||\n-\t\t is_customized_pctype) {\n+\t\t ((is_customized_pctype) &&\n+\t\t  ((cus_pctype->index == I40E_CUSTOMIZED_GTPC) ||\n+\t\t   (cus_pctype->index == I40E_CUSTOMIZED_GTPU_IPV4) ||\n+\t\t   (cus_pctype->index == I40E_CUSTOMIZED_GTPU_IPV6) ||\n+\t\t   (cus_pctype->index == I40E_CUSTOMIZED_GTPU) ||\n+\t\t   (cus_pctype->index == I40E_CUSTOMIZED_IPV4_L2TPV3)))) {\n \t\tip = (struct rte_ipv4_hdr *)raw_pkt;\n \n \t\t*ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV4);\n@@ -1054,12 +1063,16 @@ i40e_flow_fdir_fill_eth_ip_head(struct i40e_pf *pf,\n \t\t\t cus_pctype->index == I40E_CUSTOMIZED_GTPU_IPV6 ||\n \t\t\t cus_pctype->index == I40E_CUSTOMIZED_GTPU)\n \t\t\tip->next_proto_id = IPPROTO_UDP;\n+\t\telse if (cus_pctype->index == I40E_CUSTOMIZED_IPV4_L2TPV3)\n+\t\t\tip->next_proto_id = IPPROTO_L2TP;\n \t\tlen += sizeof(struct rte_ipv4_hdr);\n \t} else if (pctype == I40E_FILTER_PCTYPE_NONF_IPV6_TCP ||\n \t\t   pctype == I40E_FILTER_PCTYPE_NONF_IPV6_UDP ||\n \t\t   pctype == I40E_FILTER_PCTYPE_NONF_IPV6_SCTP ||\n \t\t   pctype == I40E_FILTER_PCTYPE_NONF_IPV6_OTHER ||\n-\t\t   pctype == I40E_FILTER_PCTYPE_FRAG_IPV6) {\n+\t\t   pctype == I40E_FILTER_PCTYPE_FRAG_IPV6 ||\n+\t\t   ((is_customized_pctype) &&\n+\t\t    (cus_pctype->index == I40E_CUSTOMIZED_IPV6_L2TPV3))) {\n \t\tip6 = (struct rte_ipv6_hdr *)raw_pkt;\n \n \t\t*ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPV6);\n@@ -1069,9 +1082,12 @@ i40e_flow_fdir_fill_eth_ip_head(struct i40e_pf *pf,\n \t\t\t\t\t  I40E_FDIR_IPv6_TC_OFFSET));\n \t\tip6->payload_len =\n \t\t\trte_cpu_to_be_16(I40E_FDIR_IPv6_PAYLOAD_LEN);\n-\t\tip6->proto = fdir_input->flow.ipv6_flow.proto ?\n-\t\t\tfdir_input->flow.ipv6_flow.proto :\n-\t\t\tnext_proto[fdir_input->pctype];\n+\t\tif (!is_customized_pctype)\n+\t\t\tip6->proto = fdir_input->flow.ipv6_flow.proto ?\n+\t\t\t\tfdir_input->flow.ipv6_flow.proto :\n+\t\t\t\tnext_proto[fdir_input->pctype];\n+\t\telse if (cus_pctype->index == I40E_CUSTOMIZED_IPV6_L2TPV3)\n+\t\t\tip6->proto = IPPROTO_L2TP;\n \t\tip6->hop_limits = fdir_input->flow.ipv6_flow.hop_limits ?\n \t\t\tfdir_input->flow.ipv6_flow.hop_limits :\n \t\t\tI40E_FDIR_IPv6_DEFAULT_HOP_LIMITS;\n@@ -1115,6 +1131,7 @@ i40e_flow_fdir_construct_pkt(struct i40e_pf *pf,\n \tstruct rte_flow_item_gtp *gtp;\n \tstruct rte_ipv4_hdr *gtp_ipv4;\n \tstruct rte_ipv6_hdr *gtp_ipv6;\n+\tstruct rte_flow_item_l2tpv3oip *l2tpv3oip;\n \tuint8_t size, dst = 0;\n \tuint8_t i, pit_idx, set_idx = I40E_FLXPLD_L4_IDX; /* use l4 by default*/\n \tint len;\n@@ -1285,6 +1302,19 @@ i40e_flow_fdir_construct_pkt(struct i40e_pf *pf,\n \t\t\t} else\n \t\t\t\tpayload = (unsigned char *)gtp +\n \t\t\t\t\tsizeof(struct rte_flow_item_gtp);\n+\t\t} else if (cus_pctype->index == I40E_CUSTOMIZED_IPV4_L2TPV3 ||\n+\t\t\t   cus_pctype->index == I40E_CUSTOMIZED_IPV6_L2TPV3) {\n+\t\t\tl2tpv3oip = (struct rte_flow_item_l2tpv3oip *)(raw_pkt\n+\t\t\t\t\t\t\t\t       + len);\n+\n+\t\t\tif (cus_pctype->index == I40E_CUSTOMIZED_IPV4_L2TPV3)\n+\t\t\t\tl2tpv3oip->session_id =\n+\t\t\t\t fdir_input->flow.ip4_l2tpv3oip_flow.session_id;\n+\t\t\telse\n+\t\t\t\tl2tpv3oip->session_id =\n+\t\t\t\t fdir_input->flow.ip6_l2tpv3oip_flow.session_id;\n+\t\t\tpayload = (unsigned char *)l2tpv3oip +\n+\t\t\t\tsizeof(struct rte_flow_item_l2tpv3oip);\n \t\t}\n \t} else {\n \t\tPMD_DRV_LOG(ERR, \"unknown pctype %u.\",\ndiff --git a/drivers/net/i40e/i40e_flow.c b/drivers/net/i40e/i40e_flow.c\nindex 61021037c..9cb28532e 100644\n--- a/drivers/net/i40e/i40e_flow.c\n+++ b/drivers/net/i40e/i40e_flow.c\n@@ -1615,6 +1615,20 @@ static enum rte_flow_item_type pattern_qinq_1[] = {\n \tRTE_FLOW_ITEM_TYPE_END,\n };\n \n+static enum rte_flow_item_type pattern_fdir_ipv4_l2tpv3oip[] = {\n+\tRTE_FLOW_ITEM_TYPE_ETH,\n+\tRTE_FLOW_ITEM_TYPE_IPV4,\n+\tRTE_FLOW_ITEM_TYPE_L2TPV3OIP,\n+\tRTE_FLOW_ITEM_TYPE_END,\n+};\n+\n+static enum rte_flow_item_type pattern_fdir_ipv6_l2tpv3oip[] = {\n+\tRTE_FLOW_ITEM_TYPE_ETH,\n+\tRTE_FLOW_ITEM_TYPE_IPV6,\n+\tRTE_FLOW_ITEM_TYPE_L2TPV3OIP,\n+\tRTE_FLOW_ITEM_TYPE_END,\n+};\n+\n static struct i40e_valid_pattern i40e_supported_patterns[] = {\n \t/* Ethertype */\n \t{ pattern_ethertype, i40e_flow_parse_ethertype_filter },\n@@ -1795,6 +1809,9 @@ static struct i40e_valid_pattern i40e_supported_patterns[] = {\n \t{ pattern_fdir_ipv6_gtpu, i40e_flow_parse_gtp_filter },\n \t/* QINQ */\n \t{ pattern_qinq_1, i40e_flow_parse_qinq_filter },\n+\t/* L2TPv3 over IP */\n+\t{ pattern_fdir_ipv4_l2tpv3oip, i40e_flow_parse_fdir_filter },\n+\t{ pattern_fdir_ipv6_l2tpv3oip, i40e_flow_parse_fdir_filter },\n };\n \n #define NEXT_ITEM_OF_ACTION(act, actions, index)                        \\\n@@ -2420,6 +2437,15 @@ i40e_flow_fdir_get_pctype_value(struct i40e_pf *pf,\n \t\t\tcus_pctype = i40e_find_customized_pctype(pf,\n \t\t\t\t\t\t I40E_CUSTOMIZED_GTPU_IPV6);\n \t\tbreak;\n+\tcase RTE_FLOW_ITEM_TYPE_L2TPV3OIP:\n+\t\tif (filter->input.flow_ext.oip_type == I40E_FDIR_IPTYPE_IPV4)\n+\t\t\tcus_pctype = i40e_find_customized_pctype(pf,\n+\t\t\t\t\t\tI40E_CUSTOMIZED_IPV4_L2TPV3);\n+\t\telse if (filter->input.flow_ext.oip_type ==\n+\t\t\t I40E_FDIR_IPTYPE_IPV6)\n+\t\t\tcus_pctype = i40e_find_customized_pctype(pf,\n+\t\t\t\t\t\tI40E_CUSTOMIZED_IPV6_L2TPV3);\n+\t\tbreak;\n \tdefault:\n \t\tPMD_DRV_LOG(ERR, \"Unsupported item type\");\n \t\tbreak;\n@@ -2461,6 +2487,7 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev,\n \tconst struct rte_flow_item_gtp *gtp_spec, *gtp_mask;\n \tconst struct rte_flow_item_raw *raw_spec, *raw_mask;\n \tconst struct rte_flow_item_vf *vf_spec;\n+\tconst struct rte_flow_item_l2tpv3oip *l2tpv3oip_spec, *l2tpv3oip_mask;\n \n \tuint8_t pctype = 0;\n \tuint64_t input_set = I40E_INSET_NONE;\n@@ -3012,6 +3039,36 @@ i40e_flow_parse_fdir_pattern(struct rte_eth_dev *dev,\n \t\t\t\treturn -rte_errno;\n \t\t\t}\n \t\t\tbreak;\n+\t\tcase RTE_FLOW_ITEM_TYPE_L2TPV3OIP:\n+\t\t\tl2tpv3oip_spec = item->spec;\n+\t\t\tl2tpv3oip_mask = item->mask;\n+\n+\t\t\tif (!l2tpv3oip_spec || !l2tpv3oip_mask)\n+\t\t\t\tbreak;\n+\n+\t\t\tif (l2tpv3oip_mask->session_id != UINT32_MAX) {\n+\t\t\t\trte_flow_error_set(error, EINVAL,\n+\t\t\t\t\tRTE_FLOW_ERROR_TYPE_ITEM,\n+\t\t\t\t\titem,\n+\t\t\t\t\t\"Invalid L2TPv3 mask\");\n+\t\t\t\treturn -rte_errno;\n+\t\t\t}\n+\n+\t\t\tif (l3 == RTE_FLOW_ITEM_TYPE_IPV4) {\n+\t\t\t\tfilter->input.flow.ip4_l2tpv3oip_flow.session_id\n+\t\t\t\t\t= l2tpv3oip_spec->session_id;\n+\t\t\t\tfilter->input.flow_ext.oip_type =\n+\t\t\t\t\tI40E_FDIR_IPTYPE_IPV4;\n+\t\t\t} else if (l3 == RTE_FLOW_ITEM_TYPE_IPV6) {\n+\t\t\t\tfilter->input.flow.ip6_l2tpv3oip_flow.session_id\n+\t\t\t\t\t= l2tpv3oip_spec->session_id;\n+\t\t\t\tfilter->input.flow_ext.oip_type =\n+\t\t\t\t\tI40E_FDIR_IPTYPE_IPV6;\n+\t\t\t}\n+\n+\t\t\tfilter->input.flow_ext.customized_pctype = true;\n+\t\t\tcus_proto = item_type;\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\tbreak;\n \t\t}\n",
    "prefixes": [
        "v3",
        "2/2"
    ]
}