get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77691,
    "url": "http://patches.dpdk.org/api/patches/77691/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200915081759.4072947-3-junfeng.guo@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": "<20200915081759.4072947-3-junfeng.guo@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200915081759.4072947-3-junfeng.guo@intel.com",
    "date": "2020-09-15T08:17:59",
    "name": "[v4,2/2] net/iavf: support RSS for IPv6 prefix 64bit",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "951e452623e1944c0afb319150062fed69118c01",
    "submitter": {
        "id": 1785,
        "url": "http://patches.dpdk.org/api/people/1785/?format=api",
        "name": "Junfeng Guo",
        "email": "junfeng.guo@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/20200915081759.4072947-3-junfeng.guo@intel.com/mbox/",
    "series": [
        {
            "id": 12223,
            "url": "http://patches.dpdk.org/api/series/12223/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12223",
            "date": "2020-09-15T08:17:57",
            "name": "add AVF RSS support for IPv6 prefix",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/12223/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77691/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/77691/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 28786A04C7;\n\tTue, 15 Sep 2020 10:20:29 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 903471C0CF;\n\tTue, 15 Sep 2020 10:20:19 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n by dpdk.org (Postfix) with ESMTP id 23A341BFC5\n for <dev@dpdk.org>; Tue, 15 Sep 2020 10:20:15 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 15 Sep 2020 01:20:15 -0700",
            "from dpdk-junfengguo-v3.sh.intel.com ([10.67.119.146])\n by fmsmga008.fm.intel.com with ESMTP; 15 Sep 2020 01:20:13 -0700"
        ],
        "IronPort-SDR": [
            "\n Dtn8mLZWTEc+Ct6pa2WH0W7qdDav7xg81nnB8SGZQTKQXMI1utzDL3amyTHcBRtdv2Gu7dggXf\n Pa2EI3H9lrpQ==",
            "\n ouW7ngRC6/JtF6vf6stn5Fsf+BUGGv3QPe+RoqmXMi+H0IxhELDHW/lxvDqattPigWv/wzmSMq\n j4k+lhnHUDEQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9744\"; a=\"159266462\"",
            "E=Sophos;i=\"5.76,429,1592895600\"; d=\"scan'208\";a=\"159266462\"",
            "E=Sophos;i=\"5.76,429,1592895600\"; d=\"scan'208\";a=\"287905866\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Junfeng Guo <junfeng.guo@intel.com>",
        "To": "qi.z.zhang@intel.com,\n\tjingjing.wu@intel.com,\n\tbeilei.xing@intel.com",
        "Cc": "dev@dpdk.org,\n\tjunfeng.guo@intel.com",
        "Date": "Tue, 15 Sep 2020 16:17:59 +0800",
        "Message-Id": "<20200915081759.4072947-3-junfeng.guo@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20200915081759.4072947-1-junfeng.guo@intel.com>",
        "References": "<20200915062609.3786061-1-junfeng.guo@intel.com>\n <20200915081759.4072947-1-junfeng.guo@intel.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v4 2/2] net/iavf: support RSS for IPv6 prefix\n\t64bit",
        "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": "RSS for IPv6 prefix 64bit fields are supported in this patch, so that\nwe can use prefix instead of full IPv6 address for RSS. The prefix\nhere only includes the first 64 bits of both SRC and DST IPv6 address.\n\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\n---\n drivers/net/iavf/iavf_hash.c | 23 +++++++++++++++++++++++\n 1 file changed, 23 insertions(+)",
    "diff": "diff --git a/drivers/net/iavf/iavf_hash.c b/drivers/net/iavf/iavf_hash.c\nindex d8a4dc8bf..61466c072 100644\n--- a/drivers/net/iavf/iavf_hash.c\n+++ b/drivers/net/iavf/iavf_hash.c\n@@ -541,6 +541,11 @@ iavf_hash_parse_pattern(struct iavf_pattern_match_item *pattern_match_item,\n \n #define REFINE_PROTO_FLD(op, fld) \\\n \tVIRTCHNL_##op##_PROTO_HDR_FIELD(hdr, VIRTCHNL_PROTO_HDR_##fld)\n+#define REPALCE_PROTO_FLD(fld_1, fld_2) \\\n+do { \\\n+\tREFINE_PROTO_FLD(DEL, fld_1);\t\\\n+\tREFINE_PROTO_FLD(ADD, fld_2);\t\\\n+} while (0)\n \n /* refine proto hdrs base on l2, l3, l4 rss type */\n static void\n@@ -596,6 +601,14 @@ iavf_refine_proto_hdrs_l234(struct virtchnl_proto_hdrs *proto_hdrs,\n \t\t\t} else {\n \t\t\t\thdr->field_selector = 0;\n \t\t\t}\n+\t\t\tif (rss_type & RTE_ETH_RSS_L3_PRE64) {\n+\t\t\t\tif (REFINE_PROTO_FLD(TEST, IPV6_SRC))\n+\t\t\t\t\tREPALCE_PROTO_FLD(IPV6_SRC,\n+\t\t\t\t\t\t\t  IPV6_PREFIX64_SRC);\n+\t\t\t\tif (REFINE_PROTO_FLD(TEST, IPV6_DST))\n+\t\t\t\t\tREPALCE_PROTO_FLD(IPV6_DST,\n+\t\t\t\t\t\t\t  IPV6_PREFIX64_DST);\n+\t\t\t}\n \t\t\tbreak;\n \t\tcase VIRTCHNL_PROTO_HDR_UDP:\n \t\t\tif (rss_type &\n@@ -764,6 +777,16 @@ iavf_any_invalid_rss_type(uint64_t rss_type, uint64_t allow_rss_type)\n \t\t\treturn true;\n \t}\n \n+\t/* current ipv6 prefix only supports prefix 64 bits*/\n+#define _invalid_prefix_ (RTE_ETH_RSS_L3_PRE32\t| \\\n+\t\t\t  RTE_ETH_RSS_L3_PRE40\t| \\\n+\t\t\t  RTE_ETH_RSS_L3_PRE48\t| \\\n+\t\t\t  RTE_ETH_RSS_L3_PRE56\t| \\\n+\t\t\t  RTE_ETH_RSS_L3_PRE96)\n+\n+\tif (rss_type & _invalid_prefix_)\n+\t\treturn true;\n+\n \t/* check not allowed RSS type */\n #define _RSS_ATTR_ (ETH_RSS_L3_SRC_ONLY\t\t| \\\n \t\t    ETH_RSS_L3_DST_ONLY\t\t| \\\n",
    "prefixes": [
        "v4",
        "2/2"
    ]
}