get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 60094,
    "url": "https://patches.dpdk.org/api/patches/60094/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1569733870-333768-3-git-send-email-simei.su@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": "<1569733870-333768-3-git-send-email-simei.su@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1569733870-333768-3-git-send-email-simei.su@intel.com",
    "date": "2019-09-29T05:11:09",
    "name": "[v6,2/3] ethdev: extend RSS offload types",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4bec53ce4ac41bab5bcd5a60ebf4bc8ed5019d1f",
    "submitter": {
        "id": 1298,
        "url": "https://patches.dpdk.org/api/people/1298/?format=api",
        "name": "Simei Su",
        "email": "simei.su@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/1569733870-333768-3-git-send-email-simei.su@intel.com/mbox/",
    "series": [
        {
            "id": 6602,
            "url": "https://patches.dpdk.org/api/series/6602/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=6602",
            "date": "2019-09-29T05:11:07",
            "name": "extend RSS offload types",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/6602/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/60094/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/60094/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 22E4D34F0;\n\tSun, 29 Sep 2019 07:11:26 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id B6AD22E81\n\tfor <dev@dpdk.org>; Sun, 29 Sep 2019 07:11:18 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Sep 2019 22:11:18 -0700",
            "from npg-dpdk-cvl-simeisu-118d193.sh.intel.com ([10.67.110.183])\n\tby fmsmga002.fm.intel.com with ESMTP; 28 Sep 2019 22:11:17 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.64,562,1559545200\"; d=\"scan'208\";a=\"220278683\"",
        "From": "Simei Su <simei.su@intel.com>",
        "To": "qi.z.zhang@intel.com, jingjing.wu@intel.com, xiaolong.ye@intel.com,\n\tferruh.yigit@intel.com",
        "Cc": "dev@dpdk.org,\n\tsimei.su@intel.com",
        "Date": "Sun, 29 Sep 2019 13:11:09 +0800",
        "Message-Id": "<1569733870-333768-3-git-send-email-simei.su@intel.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1569733870-333768-1-git-send-email-simei.su@intel.com>",
        "References": "<1569637743-174186-1-git-send-email-simei.su@intel.com>\n\t<1569733870-333768-1-git-send-email-simei.su@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v6 2/3] ethdev: extend RSS offload types",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch reserves several bits as input set selection from the\nhigh end of the 64 bits. It is combined with exisiting ETH_RSS_*\nto represent rss types.\n\nfor example:\n  ETH_RSS_IPV4 | ETH_RSS_L3_SRC_ONLY: hash on src ip address only\n  ETH_RSS_IPV4_UDP | ETH_RSS_L4_DST_ONLY: hash on src/dst IP and\n                                          dst UDP port\n\nSigned-off-by: Simei Su <simei.su@intel.com>\n---\n lib/librte_ethdev/rte_ethdev.h | 13 +++++++++++++\n 1 file changed, 13 insertions(+)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex 7722f70..e68bca8 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -505,6 +505,19 @@ struct rte_eth_rss_conf {\n #define ETH_RSS_GENEVE             (1ULL << 20)\n #define ETH_RSS_NVGRE              (1ULL << 21)\n \n+/*\n+ * We use the following macros to combine with above ETH_RSS_* for\n+ * more specific input set selection. These bits are defined starting\n+ * from the high end of the 64 bits.\n+ * Note: If we use above ETH_RSS_* without SRC/DST_ONLY, it represents\n+ * both SRC and DST are taken into account. SRC_ONLY and DST_ONLY of\n+ * the same level can't be used simultaneously.\n+ */\n+#define ETH_RSS_L3_SRC_ONLY        (1ULL << 63)\n+#define ETH_RSS_L3_DST_ONLY        (1ULL << 62)\n+#define ETH_RSS_L4_SRC_ONLY        (1ULL << 61)\n+#define ETH_RSS_L4_DST_ONLY        (1ULL << 60)\n+\n #define ETH_RSS_IP ( \\\n \tETH_RSS_IPV4 | \\\n \tETH_RSS_FRAG_IPV4 | \\\n",
    "prefixes": [
        "v6",
        "2/3"
    ]
}