get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 76124,
    "url": "https://patches.dpdk.org/api/patches/76124/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200828080306.48916-1-alvinx.zhang@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": "<20200828080306.48916-1-alvinx.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200828080306.48916-1-alvinx.zhang@intel.com",
    "date": "2020-08-28T08:03:06",
    "name": "net/iavf: support outer IP hash for GTPU",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "2c53ed30e5a0d2d70e583a7224325d07473fef70",
    "submitter": {
        "id": 1398,
        "url": "https://patches.dpdk.org/api/people/1398/?format=api",
        "name": "Alvin Zhang",
        "email": "alvinx.zhang@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "https://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200828080306.48916-1-alvinx.zhang@intel.com/mbox/",
    "series": [
        {
            "id": 11836,
            "url": "https://patches.dpdk.org/api/series/11836/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=11836",
            "date": "2020-08-28T08:03:06",
            "name": "net/iavf: support outer IP hash for GTPU",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/11836/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/76124/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/76124/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 4D51BA04B1;\n\tFri, 28 Aug 2020 10:07:07 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A48E21C0C5;\n\tFri, 28 Aug 2020 10:07:06 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id 411DB1C08E\n for <dev@dpdk.org>; Fri, 28 Aug 2020 10:07:04 +0200 (CEST)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Aug 2020 01:07:02 -0700",
            "from shwdenpg235.ccr.corp.intel.com ([10.240.182.60])\n by orsmga002.jf.intel.com with ESMTP; 28 Aug 2020 01:06:59 -0700"
        ],
        "IronPort-SDR": [
            "\n AfblyC5edovCYG3V246b+4eyJjKRh2v9zDOXBkMpS763TUkGFjHw+hGILFm0guCAjj+1o/g2tA\n ZezQUiJSiXmw==",
            "\n AsjAIkPMxcu0DX1F9is9uObLq2Uvo8UyNOAPBv02tikJCVWcj3O+CGw5jRCftHJ4xUq33aqWBU\n +UOC71oOnrig=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9726\"; a=\"136691427\"",
            "E=Sophos;i=\"5.76,363,1592895600\"; d=\"scan'208\";a=\"136691427\"",
            "E=Sophos;i=\"5.76,363,1592895600\"; d=\"scan'208\";a=\"313529018\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "alvinx.zhang@intel.com",
        "To": "jia.guo@intel.com,\n\tqi.z.zhang@intel.com",
        "Cc": "dev@dpdk.org,\n\tAlvin Zhang <alvinx.zhang@intel.com>",
        "Date": "Fri, 28 Aug 2020 16:03:06 +0800",
        "Message-Id": "<20200828080306.48916-1-alvinx.zhang@intel.com>",
        "X-Mailer": "git-send-email 2.21.0.windows.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] net/iavf: support outer IP hash for GTPU",
        "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": "From: Alvin Zhang <alvinx.zhang@intel.com>\n\nAdd patterns for GTPU, now outer IP hash can be configured as input set for\nGTPU packet.\n\nSigned-off-by: Alvin Zhang <alvinx.zhang@intel.com>\n---\n drivers/net/iavf/iavf_generic_flow.c |  18 ++++++\n drivers/net/iavf/iavf_generic_flow.h |   2 +\n drivers/net/iavf/iavf_hash.c         | 110 +++++++++++++++++++++++++++++++++++\n 3 files changed, 130 insertions(+)",
    "diff": "diff --git a/drivers/net/iavf/iavf_generic_flow.c b/drivers/net/iavf/iavf_generic_flow.c\nindex 44fab4d..463f2c1 100644\n--- a/drivers/net/iavf/iavf_generic_flow.c\n+++ b/drivers/net/iavf/iavf_generic_flow.c\n@@ -342,6 +342,15 @@ enum rte_flow_item_type iavf_pattern_eth_ipv4_gtpu[] = {\n \tRTE_FLOW_ITEM_TYPE_END,\n };\n \n+enum rte_flow_item_type iavf_pattern_eth_vlan_ipv4_gtpu[] = {\n+\tRTE_FLOW_ITEM_TYPE_ETH,\n+\tRTE_FLOW_ITEM_TYPE_VLAN,\n+\tRTE_FLOW_ITEM_TYPE_IPV4,\n+\tRTE_FLOW_ITEM_TYPE_UDP,\n+\tRTE_FLOW_ITEM_TYPE_GTPU,\n+\tRTE_FLOW_ITEM_TYPE_END,\n+};\n+\n enum rte_flow_item_type iavf_pattern_eth_ipv4_gtpu_eh[] = {\n \tRTE_FLOW_ITEM_TYPE_ETH,\n \tRTE_FLOW_ITEM_TYPE_IPV4,\n@@ -378,6 +387,15 @@ enum rte_flow_item_type iavf_pattern_eth_ipv6_gtpu[] = {\n \tRTE_FLOW_ITEM_TYPE_END,\n };\n \n+enum rte_flow_item_type iavf_pattern_eth_vlan_ipv6_gtpu[] = {\n+\tRTE_FLOW_ITEM_TYPE_ETH,\n+\tRTE_FLOW_ITEM_TYPE_VLAN,\n+\tRTE_FLOW_ITEM_TYPE_IPV6,\n+\tRTE_FLOW_ITEM_TYPE_UDP,\n+\tRTE_FLOW_ITEM_TYPE_GTPU,\n+\tRTE_FLOW_ITEM_TYPE_END,\n+};\n+\n enum rte_flow_item_type iavf_pattern_eth_ipv6_gtpu_eh[] = {\n \tRTE_FLOW_ITEM_TYPE_ETH,\n \tRTE_FLOW_ITEM_TYPE_IPV6,\ndiff --git a/drivers/net/iavf/iavf_generic_flow.h b/drivers/net/iavf/iavf_generic_flow.h\nindex eb466f9..507bf61 100644\n--- a/drivers/net/iavf/iavf_generic_flow.h\n+++ b/drivers/net/iavf/iavf_generic_flow.h\n@@ -188,6 +188,7 @@\n \n /* IPv4 GTPU (EH) */\n extern enum rte_flow_item_type iavf_pattern_eth_ipv4_gtpu[];\n+extern enum rte_flow_item_type iavf_pattern_eth_vlan_ipv4_gtpu[];\n extern enum rte_flow_item_type iavf_pattern_eth_ipv4_gtpu_eh[];\n \n /* IPV4 GTPC */\n@@ -196,6 +197,7 @@\n \n /* IPv6 GTPU (EH) */\n extern enum rte_flow_item_type iavf_pattern_eth_ipv6_gtpu[];\n+extern enum rte_flow_item_type iavf_pattern_eth_vlan_ipv6_gtpu[];\n extern enum rte_flow_item_type iavf_pattern_eth_ipv6_gtpu_eh[];\n \n /* IPv4 GTPU IPv4 */\ndiff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c\nindex 7bc32b0..f80831a 100644\n--- a/drivers/net/iavf/iavf_hash.c\n+++ b/drivers/net/iavf/iavf_hash.c\n@@ -195,6 +195,10 @@ struct iavf_hash_flow_cfg {\n \tIAVF_PHINT_IPV4_GTPC };\n static struct iavf_pattern_match_type phint_eth_ipv6_gtpc = {\n \tIAVF_PHINT_IPV6_GTPC };\n+static struct iavf_pattern_match_type phint_eth_ipv4_gtpu = {\n+\tIAVF_PHINT_IPV4_GTPU_IP };\n+static struct iavf_pattern_match_type phint_eth_ipv6_gtpu = {\n+\tIAVF_PHINT_IPV6_GTPU_IP };\n \n /**\n  * Supported pattern for hash.\n@@ -293,6 +297,12 @@ struct iavf_hash_flow_cfg {\n \t\t\t\t\t&phint_eth_ipv4_gtpc},\n \t{iavf_pattern_eth_vlan_ipv6_gtpc, IAVF_INSET_NONE,\n \t\t\t\t\t&phint_eth_ipv6_gtpc},\n+\t{iavf_pattern_eth_ipv4_gtpu, IAVF_INSET_NONE, &phint_eth_ipv4_gtpu},\n+\t{iavf_pattern_eth_ipv6_gtpu, IAVF_INSET_NONE, &phint_eth_ipv6_gtpu},\n+\t{iavf_pattern_eth_vlan_ipv4_gtpu, IAVF_INSET_NONE,\n+\t\t\t\t\t&phint_eth_ipv4_gtpu},\n+\t{iavf_pattern_eth_vlan_ipv6_gtpu, IAVF_INSET_NONE,\n+\t\t\t\t\t&phint_eth_ipv6_gtpu},\n \t{iavf_pattern_empty, IAVF_INSET_NONE, &phint_empty},\n };\n \n@@ -818,6 +828,37 @@ struct virtchnl_proto_hdrs hdrs_hint_cvlan_ipv4_src_gtpc = {\n \tproto_hint_ipv4_src, proto_hint_udp_only, proto_hint_gtpc_only}\n };\n \n+/* IPv4 GTPU */\n+struct virtchnl_proto_hdrs hdrs_hint_ipv4_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_THREE, {proto_hint_ipv4,\n+\tproto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_ipv4_dst_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_THREE, {proto_hint_ipv4_dst,\n+\tproto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_ipv4_src_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_THREE, {proto_hint_ipv4_src,\n+\tproto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_cvlan_ipv4_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_FOUR, {proto_hint_cvlan,\n+\tproto_hint_ipv4, proto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_cvlan_ipv4_dst_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_FOUR, {proto_hint_cvlan,\n+\tproto_hint_ipv4_dst, proto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_cvlan_ipv4_src_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_FOUR, {proto_hint_cvlan,\n+\tproto_hint_ipv4_src, proto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n /* IPv4 GTPU IP */\n \n struct virtchnl_proto_hdrs hdrs_hint_ipv4_src_gtpu_ip = {\n@@ -970,6 +1011,37 @@ struct virtchnl_proto_hdrs hdrs_hint_cvlan_ipv6_src_gtpc = {\n \tproto_hint_ipv6_src, proto_hint_udp_only, proto_hint_gtpc_only}\n };\n \n+/* IPv6 GTPU */\n+struct virtchnl_proto_hdrs hdrs_hint_ipv6_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_THREE, {proto_hint_ipv6,\n+\tproto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_ipv6_dst_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_THREE, {proto_hint_ipv6_dst,\n+\tproto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_ipv6_src_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_THREE, {proto_hint_ipv6_src,\n+\tproto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_cvlan_ipv6_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_FOUR, {proto_hint_cvlan,\n+\tproto_hint_ipv6, proto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_cvlan_ipv6_dst_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_FOUR, {proto_hint_cvlan,\n+\tproto_hint_ipv6_dst, proto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n+struct virtchnl_proto_hdrs hdrs_hint_cvlan_ipv6_src_gtpu = {\n+\tTUNNEL_LEVEL_OUTER, PROTO_COUNT_FOUR, {proto_hint_cvlan,\n+\tproto_hint_ipv6_src, proto_hint_udp_only, proto_hint_gtpu_ip_only}\n+};\n+\n /* IPv6 GTPU IP */\n \n struct virtchnl_proto_hdrs hdrs_hint_ipv6_src_gtpu_ip = {\n@@ -2384,6 +2456,44 @@ struct iavf_hash_match_type iavf_gtpu_hash_map_list[] = {\n \t\tETH_RSS_IPV6 | ETH_RSS_L3_SRC_ONLY,\n \t\t&hdrs_hint_cvlan_ipv6_src_gtpc, IAVF_PHINT_IPV6_GTPC},\n \n+\t/* IPv4 GTPU */\n+\t{ETH_RSS_IPV4,\n+\t\t&hdrs_hint_ipv4_gtpu, IAVF_PHINT_IPV4_GTPU_IP},\n+\t{ETH_RSS_IPV4 |\n+\t\tETH_RSS_L3_DST_ONLY,\n+\t\t&hdrs_hint_ipv4_dst_gtpu, IAVF_PHINT_IPV4_GTPU_IP},\n+\t{ETH_RSS_IPV4 |\n+\t\tETH_RSS_L3_SRC_ONLY,\n+\t\t&hdrs_hint_ipv4_src_gtpu, IAVF_PHINT_IPV4_GTPU_IP},\n+\t{ETH_RSS_C_VLAN |\n+\t\tETH_RSS_IPV4,\n+\t\t&hdrs_hint_cvlan_ipv4_gtpu, IAVF_PHINT_IPV4_GTPU_IP},\n+\t{ETH_RSS_C_VLAN |\n+\t\tETH_RSS_IPV4 | ETH_RSS_L3_DST_ONLY,\n+\t\t&hdrs_hint_cvlan_ipv4_dst_gtpu, IAVF_PHINT_IPV4_GTPU_IP},\n+\t{ETH_RSS_C_VLAN |\n+\t\tETH_RSS_IPV4 | ETH_RSS_L3_SRC_ONLY,\n+\t\t&hdrs_hint_cvlan_ipv4_src_gtpu, IAVF_PHINT_IPV4_GTPU_IP},\n+\n+\t/* IPv6 GTPU */\n+\t{ETH_RSS_IPV6,\n+\t\t&hdrs_hint_ipv6_gtpu, IAVF_PHINT_IPV6_GTPU_IP},\n+\t{ETH_RSS_IPV6 |\n+\t\tETH_RSS_L3_DST_ONLY,\n+\t\t&hdrs_hint_ipv6_dst_gtpu, IAVF_PHINT_IPV6_GTPU_IP},\n+\t{ETH_RSS_IPV6 |\n+\t\tETH_RSS_L3_SRC_ONLY,\n+\t\t&hdrs_hint_ipv6_src_gtpu, IAVF_PHINT_IPV6_GTPU_IP},\n+\t{ETH_RSS_C_VLAN |\n+\t\tETH_RSS_IPV6,\n+\t\t&hdrs_hint_cvlan_ipv6_gtpu, IAVF_PHINT_IPV6_GTPU_IP},\n+\t{ETH_RSS_C_VLAN |\n+\t\tETH_RSS_IPV6 | ETH_RSS_L3_DST_ONLY,\n+\t\t&hdrs_hint_cvlan_ipv6_dst_gtpu, IAVF_PHINT_IPV6_GTPU_IP},\n+\t{ETH_RSS_C_VLAN |\n+\t\tETH_RSS_IPV6 | ETH_RSS_L3_SRC_ONLY,\n+\t\t&hdrs_hint_cvlan_ipv6_src_gtpu, IAVF_PHINT_IPV6_GTPU_IP},\n+\n \t/* GTPU IP */\n \t/* IPv4 GTPU IP IPv4*/\n \t{ETH_RSS_IPV4 |\n",
    "prefixes": []
}