get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 93747,
    "url": "http://patches.dpdk.org/api/patches/93747/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210602022442.264961-4-wenjun1.wu@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20210602022442.264961-4-wenjun1.wu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210602022442.264961-4-wenjun1.wu@intel.com",
    "date": "2021-06-02T02:24:41",
    "name": "[v2,3/4] net/iavf: support AVF RSS for GRE tunnel packet",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "df0bdd48ef5565b4228aaa4c74f4ee3de554ef4c",
    "submitter": {
        "id": 2083,
        "url": "http://patches.dpdk.org/api/people/2083/?format=api",
        "name": "Wenjun Wu",
        "email": "wenjun1.wu@intel.com"
    },
    "delegate": {
        "id": 1540,
        "url": "http://patches.dpdk.org/api/users/1540/?format=api",
        "username": "qzhan15",
        "first_name": "Qi",
        "last_name": "Zhang",
        "email": "qi.z.zhang@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210602022442.264961-4-wenjun1.wu@intel.com/mbox/",
    "series": [
        {
            "id": 17197,
            "url": "http://patches.dpdk.org/api/series/17197/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=17197",
            "date": "2021-06-02T02:24:38",
            "name": "support AVF RSS and FDIR for GRE tunnel packet",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/17197/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/93747/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/93747/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 81DCAA0524;\n\tWed,  2 Jun 2021 04:41:35 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EAD62410F0;\n\tWed,  2 Jun 2021 04:41:26 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n by mails.dpdk.org (Postfix) with ESMTP id B9C4F410F0\n for <dev@dpdk.org>; Wed,  2 Jun 2021 04:41:25 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Jun 2021 19:41:25 -0700",
            "from wuwenjun.sh.intel.com ([10.67.110.207])\n by fmsmga008.fm.intel.com with ESMTP; 01 Jun 2021 19:41:22 -0700"
        ],
        "IronPort-SDR": [
            "\n 6y2LrMSVyKF068CAK5j0ptVs3cwA2jhl2SXfXwD60kybNzjkMVDCH4qo96r3L3aFFRkp7IdyqC\n fJ0aWsz7elyQ==",
            "\n c8DNhc6OPK376sTtvlZnj+uDpaduHbWlufVBh17VEmA+yXYZ8PD3Fn3AOX/KtqqGoxkn/upHrH\n 7797eKZN3z1w=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10002\"; a=\"190799249\"",
            "E=Sophos;i=\"5.83,241,1616482800\"; d=\"scan'208\";a=\"190799249\"",
            "E=Sophos;i=\"5.83,241,1616482800\"; d=\"scan'208\";a=\"447221367\""
        ],
        "X-ExtLoop1": "1",
        "From": "Wenjun Wu <wenjun1.wu@intel.com>",
        "To": "dev@dpdk.org, qi.z.zhang@intel.com, jingjing.wu@intel.com,\n beilei.xing@intel.com",
        "Cc": "Wenjun Wu <wenjun1.wu@intel.com>",
        "Date": "Wed,  2 Jun 2021 10:24:41 +0800",
        "Message-Id": "<20210602022442.264961-4-wenjun1.wu@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210602022442.264961-1-wenjun1.wu@intel.com>",
        "References": "<20210527074845.1263679>\n <20210602022442.264961-1-wenjun1.wu@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 3/4] net/iavf: support AVF RSS for GRE tunnel\n packet",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "Support AVF RSS for inner header of GRE tunnel packet. It supports\nRSS based on fields inner IP src + dst address and TCP/UDP src + dst\nport.\n\nSigned-off-by: Wenjun Wu <wenjun1.wu@intel.com>\n---\n drivers/net/iavf/iavf_hash.c | 27 ++++++++++++++++++++++-----\n 1 file changed, 22 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c\nindex 5d3d62839b..f4f0bcbfef 100644\n--- a/drivers/net/iavf/iavf_hash.c\n+++ b/drivers/net/iavf/iavf_hash.c\n@@ -30,6 +30,7 @@\n #define\tIAVF_PHINT_GTPU_EH_UP\t\t\tBIT_ULL(3)\n #define IAVF_PHINT_OUTER_IPV4\t\t\tBIT_ULL(4)\n #define IAVF_PHINT_OUTER_IPV6\t\t\tBIT_ULL(5)\n+#define IAVF_PHINT_GRE\t\t\t\tBIT_ULL(6)\n \n #define IAVF_PHINT_GTPU_MSK\t(IAVF_PHINT_GTPU\t| \\\n \t\t\t\t IAVF_PHINT_GTPU_EH\t| \\\n@@ -428,6 +429,12 @@ static struct iavf_pattern_match_item iavf_hash_pattern_list[] = {\n \t{iavf_pattern_eth_ipv4_gtpc,\t\t\tETH_RSS_IPV4,\t\t\t&ipv4_udp_gtpc_tmplt},\n \t{iavf_pattern_eth_ecpri,\t\t\tETH_RSS_ECPRI,\t\t\t&eth_ecpri_tmplt},\n \t{iavf_pattern_eth_ipv4_ecpri,\t\t\tETH_RSS_ECPRI,\t\t\t&ipv4_ecpri_tmplt},\n+\t{iavf_pattern_eth_ipv4_gre_ipv4,\t\tIAVF_RSS_TYPE_INNER_IPV4,\t&inner_ipv4_tmplt},\n+\t{iavf_pattern_eth_ipv6_gre_ipv4,\t\tIAVF_RSS_TYPE_INNER_IPV4, &inner_ipv4_tmplt},\n+\t{iavf_pattern_eth_ipv4_gre_ipv4_tcp,\tIAVF_RSS_TYPE_INNER_IPV4_TCP, &inner_ipv4_tcp_tmplt},\n+\t{iavf_pattern_eth_ipv6_gre_ipv4_tcp,\tIAVF_RSS_TYPE_INNER_IPV4_TCP, &inner_ipv4_tcp_tmplt},\n+\t{iavf_pattern_eth_ipv4_gre_ipv4_udp,\tIAVF_RSS_TYPE_INNER_IPV4_UDP, &inner_ipv4_udp_tmplt},\n+\t{iavf_pattern_eth_ipv6_gre_ipv4_udp,\tIAVF_RSS_TYPE_INNER_IPV4_UDP, &inner_ipv4_udp_tmplt},\n \t/* IPv6 */\n \t{iavf_pattern_eth_ipv6,\t\t\t\tIAVF_RSS_TYPE_OUTER_IPV6,\t&outer_ipv6_tmplt},\n \t{iavf_pattern_eth_ipv6_frag_ext,\t\tIAVF_RSS_TYPE_OUTER_IPV6_FRAG,\t&outer_ipv6_frag_tmplt},\n@@ -458,6 +465,12 @@ static struct iavf_pattern_match_item iavf_hash_pattern_list[] = {\n \t{iavf_pattern_eth_ipv6_l2tpv3,\t\t\tIAVF_RSS_TYPE_IPV6_L2TPV3,\t&ipv6_l2tpv3_tmplt},\n \t{iavf_pattern_eth_ipv6_pfcp,\t\t\tIAVF_RSS_TYPE_IPV6_PFCP,\t&ipv6_pfcp_tmplt},\n \t{iavf_pattern_eth_ipv6_gtpc,\t\t\tETH_RSS_IPV6,\t\t\t&ipv6_udp_gtpc_tmplt},\n+\t{iavf_pattern_eth_ipv4_gre_ipv6,\t\tIAVF_RSS_TYPE_INNER_IPV6,\t&inner_ipv6_tmplt},\n+\t{iavf_pattern_eth_ipv6_gre_ipv6,\t\tIAVF_RSS_TYPE_INNER_IPV6, &inner_ipv6_tmplt},\n+\t{iavf_pattern_eth_ipv4_gre_ipv6_tcp,\tIAVF_RSS_TYPE_INNER_IPV6_TCP, &inner_ipv6_tcp_tmplt},\n+\t{iavf_pattern_eth_ipv6_gre_ipv6_tcp,\tIAVF_RSS_TYPE_INNER_IPV6_TCP, &inner_ipv6_tcp_tmplt},\n+\t{iavf_pattern_eth_ipv4_gre_ipv6_udp,\tIAVF_RSS_TYPE_INNER_IPV6_UDP, &inner_ipv6_udp_tmplt},\n+\t{iavf_pattern_eth_ipv6_gre_ipv6_udp,\tIAVF_RSS_TYPE_INNER_IPV6_UDP, &inner_ipv6_udp_tmplt},\n };\n \n static struct iavf_flow_engine iavf_hash_engine = {\n@@ -592,11 +605,11 @@ iavf_hash_parse_pattern(const struct rte_flow_item pattern[], uint64_t *phint,\n \n \t\tswitch (item->type) {\n \t\tcase RTE_FLOW_ITEM_TYPE_IPV4:\n-\t\t\tif (!(*phint & IAVF_PHINT_GTPU_MSK))\n+\t\t\tif (!(*phint & IAVF_PHINT_GTPU_MSK) && !(*phint & IAVF_PHINT_GRE))\n \t\t\t\t*phint |= IAVF_PHINT_OUTER_IPV4;\n \t\t\tbreak;\n \t\tcase RTE_FLOW_ITEM_TYPE_IPV6:\n-\t\t\tif (!(*phint & IAVF_PHINT_GTPU_MSK))\n+\t\t\tif (!(*phint & IAVF_PHINT_GTPU_MSK) && !(*phint & IAVF_PHINT_GRE))\n \t\t\t\t*phint |= IAVF_PHINT_OUTER_IPV6;\n \t\t\tbreak;\n \t\tcase RTE_FLOW_ITEM_TYPE_GTPU:\n@@ -627,6 +640,8 @@ iavf_hash_parse_pattern(const struct rte_flow_item pattern[], uint64_t *phint,\n \t\t\t\treturn -rte_errno;\n \t\t\t}\n \t\t\tbreak;\n+\t\tcase RTE_FLOW_ITEM_TYPE_GRE:\n+\t\t\t*phint |= IAVF_PHINT_GRE;\n \t\tdefault:\n \t\t\tbreak;\n \t\t}\n@@ -867,7 +882,7 @@ iavf_refine_proto_hdrs_by_pattern(struct virtchnl_proto_hdrs *proto_hdrs,\n \tstruct virtchnl_proto_hdr *hdr2;\n \tint i, shift_count = 1;\n \n-\tif (!(phint & IAVF_PHINT_GTPU_MSK))\n+\tif (!(phint & IAVF_PHINT_GTPU_MSK) && !(phint & IAVF_PHINT_GRE))\n \t\treturn;\n \n \tif (phint & IAVF_PHINT_LAYERS_MSK)\n@@ -883,10 +898,10 @@ iavf_refine_proto_hdrs_by_pattern(struct virtchnl_proto_hdrs *proto_hdrs,\n \t\t}\n \n \t\tif (shift_count == 1) {\n-\t\t\t/* adding gtpu header at layer 0 */\n+\t\t\t/* adding tunnel header at layer 0 */\n \t\t\thdr1 = &proto_hdrs->proto_hdr[0];\n \t\t} else {\n-\t\t\t/* adding gtpu header and outer ip header */\n+\t\t\t/* adding tunnel header and outer ip header */\n \t\t\thdr1 = &proto_hdrs->proto_hdr[1];\n \t\t\thdr2 = &proto_hdrs->proto_hdr[0];\n \t\t\thdr2->field_selector = 0;\n@@ -913,6 +928,8 @@ iavf_refine_proto_hdrs_by_pattern(struct virtchnl_proto_hdrs *proto_hdrs,\n \t\tVIRTCHNL_SET_PROTO_HDR_TYPE(hdr1, GTPU_EH);\n \telse if (phint & IAVF_PHINT_GTPU)\n \t\tVIRTCHNL_SET_PROTO_HDR_TYPE(hdr1, GTPU_IP);\n+\telse if (phint & IAVF_PHINT_GRE)\n+\t\tVIRTCHNL_SET_PROTO_HDR_TYPE(hdr1, GRE);\n }\n \n static void iavf_refine_proto_hdrs(struct virtchnl_proto_hdrs *proto_hdrs,\n",
    "prefixes": [
        "v2",
        "3/4"
    ]
}