Show a patch.

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

{
    "id": 73570,
    "url": "https://patches.dpdk.org/api/patches/73570/",
    "web_url": "https://patches.dpdk.org/patch/73570/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/",
        "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"
    },
    "msgid": "<20200709020643.18415-1-qi.z.zhang@intel.com>",
    "date": "2020-07-09T02:06:41",
    "name": "[v6,1/3] ethdev: add new RSS types for IPv6 prefix",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a3d7b3c6251edc00ba1ab08cf95d0e2d01e54522",
    "submitter": {
        "id": 504,
        "url": "https://patches.dpdk.org/api/people/504/",
        "name": "Zhang, Qi Z",
        "email": "qi.z.zhang@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "https://patches.dpdk.org/api/users/319/",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@intel.com"
    },
    "mbox": "https://patches.dpdk.org/patch/73570/mbox/",
    "series": [
        {
            "id": 10905,
            "url": "https://patches.dpdk.org/api/series/10905/",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10905",
            "date": "2020-07-09T02:06:41",
            "name": "[v6,1/3] ethdev: add new RSS types for IPv6 prefix",
            "version": 6,
            "mbox": "https://patches.dpdk.org/series/10905/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/73570/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/73570/checks/",
    "tags": {},
    "headers": {
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "Return-Path": "<dev-bounces@dpdk.org>",
        "IronPort-SDR": [
            "\n uU+vX5KZ9tqkLfBWSeAKnAD5cpkV65ZR3aO0G5mREHq6wLsntM+/ekw/WcD7aWafacwv1cUoA4\n 3lzbzSIjslzQ==",
            "\n 4YyyLssSd4ab7zfzRNm1CjGwjpzNmBKsntYZnRY9E2UxxtXR59vbMkh1wdc+zF26GlwlcBU/Pe\n t7Y5YnWPZsPw=="
        ],
        "X-Mailer": "git-send-email 2.13.6",
        "To": "thomas@monjalon.net",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id BB2A2A0526;\n\tThu,  9 Jul 2020 04:02:48 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E84AC1DC0B;\n\tThu,  9 Jul 2020 04:02:47 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id C99BE1DBBC\n for <dev@dpdk.org>; Thu,  9 Jul 2020 04:02:46 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Jul 2020 19:02:45 -0700",
            "from dpdk51.sh.intel.com ([10.67.111.82])\n by orsmga008.jf.intel.com with ESMTP; 08 Jul 2020 19:02:43 -0700"
        ],
        "X-BeenThere": "dev@dpdk.org",
        "X-Amp-File-Uploaded": "False",
        "Subject": "[dpdk-dev] [PATCH v6 1/3] ethdev: add new RSS types for IPv6 prefix",
        "Cc": "dev@dpdk.org, ferruh.yigit@intel.com, arybchenko@solarflare.com,\n Junfeng Guo <junfeng.guo@intel.com>, Qi Zhang <qi.z.zhang@intel.com>",
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "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-Post": "<mailto:dev@dpdk.org>",
        "In-Reply-To": "<20200708133703.48945-1-qi.z.zhang@intel.com>",
        "X-ExtLoop1": "1",
        "Precedence": "list",
        "From": "Qi Zhang <qi.z.zhang@intel.com>",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9676\"; a=\"127995977\"",
            "E=Sophos;i=\"5.75,330,1589266800\"; d=\"scan'208\";a=\"127995977\"",
            "E=Sophos;i=\"5.75,330,1589266800\"; d=\"scan'208\";a=\"314802274\""
        ],
        "References": "<20200708133703.48945-1-qi.z.zhang@intel.com>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>",
        "Errors-To": "dev-bounces@dpdk.org",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "Message-Id": "<20200709020643.18415-1-qi.z.zhang@intel.com>",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Date": "Thu,  9 Jul 2020 10:06:41 +0800",
        "X-Mailman-Version": "2.1.15"
    },
    "content": "From: Junfeng Guo <junfeng.guo@intel.com>\n\nThis patch defines new RSS offload types for IPv6 prefix with 32, 40, 48,\n56, 64, 96 bits of both SRC and DST IPv6 address.\nRef https://tools.ietf.org/html/rfc6052.\n\nSigned-off-by: Junfeng Guo <junfeng.guo@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n\nv6:\n- rename to RTE_ETH_RSS_xxx\n\nv5:\n- add 40 56, 96 according to RFC6052\n- add more description about the new macros.\n\n\n lib/librte_ethdev/rte_ethdev.h | 109 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 109 insertions(+)",
    "diff": "diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h\nindex 631b146bd..03356cdb2 100644\n--- a/lib/librte_ethdev/rte_ethdev.h\n+++ b/lib/librte_ethdev/rte_ethdev.h\n@@ -539,6 +539,19 @@ struct rte_eth_rss_conf {\n #define ETH_RSS_L2_SRC_ONLY        (1ULL << 59)\n #define ETH_RSS_L2_DST_ONLY        (1ULL << 58)\n \n+/*\n+ * Only select IPV6 address prefix as RSS input set according to\n+ * https://tools.ietf.org/html/rfc6052\n+ * Must be combined with ETH_RSS_IPV6, ETH_RSS_NONFRAG_IPV6_UDP,\n+ * ETH_RSS_NONFRAG_IPV6_TCP, ETH_RSS_NONFRAG_IPV6_SCTP.\n+ */\n+#define RTE_ETH_RSS_L3_PRE32\t   (1ULL << 57)\n+#define RTE_ETH_RSS_L3_PRE40\t   (1ULL << 56)\n+#define RTE_ETH_RSS_L3_PRE48\t   (1ULL << 55)\n+#define RTE_ETH_RSS_L3_PRE56\t   (1ULL << 54)\n+#define RTE_ETH_RSS_L3_PRE64\t   (1ULL << 53)\n+#define RTE_ETH_RSS_L3_PRE96\t   (1ULL << 52)\n+\n /**\n  * For input set change of hash filter, if SRC_ONLY and DST_ONLY of\n  * the same level are used simultaneously, it is the same case as\n@@ -561,6 +574,102 @@ rte_eth_rss_hf_refine(uint64_t rss_hf)\n \treturn rss_hf;\n }\n \n+#define ETH_RSS_IPV6_PRE32 ( \\\n+\t\tETH_RSS_IPV6 | \\\n+\t\tRTE_ETH_RSS_L3_PRE32)\n+\n+#define ETH_RSS_IPV6_PRE40 ( \\\n+\t\tETH_RSS_IPV6 | \\\n+\t\tRTE_ETH_RSS_L3_PRE40)\n+\n+#define ETH_RSS_IPV6_PRE48 ( \\\n+\t\tETH_RSS_IPV6 | \\\n+\t\tRTE_ETH_RSS_L3_PRE48)\n+\n+#define ETH_RSS_IPV6_PRE56 ( \\\n+\t\tETH_RSS_IPV6 | \\\n+\t\tRTE_ETH_RSS_L3_PRE56)\n+\n+#define ETH_RSS_IPV6_PRE64 ( \\\n+\t\tETH_RSS_IPV6 | \\\n+\t\tRTE_ETH_RSS_L3_PRE64)\n+\n+#define ETH_RSS_IPV6_PRE96 ( \\\n+\t\tETH_RSS_IPV6 | \\\n+\t\tRTE_ETH_RSS_L3_PRE96)\n+\n+#define ETH_RSS_IPV6_PRE32_UDP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_UDP | \\\n+\t\tRTE_ETH_RSS_L3_PRE32)\n+\n+#define ETH_RSS_IPV6_PRE40_UDP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_UDP | \\\n+\t\tRTE_ETH_RSS_L3_PRE40)\n+\n+#define ETH_RSS_IPV6_PRE48_UDP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_UDP | \\\n+\t\tRTE_ETH_RSS_L3_PRE48)\n+\n+#define ETH_RSS_IPV6_PRE56_UDP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_UDP | \\\n+\t\tRTE_ETH_RSS_L3_PRE56)\n+\n+#define ETH_RSS_IPV6_PRE64_UDP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_UDP | \\\n+\t\tRTE_ETH_RSS_L3_PRE64)\n+\n+#define ETH_RSS_IPV6_PRE96_UDP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_UDP | \\\n+\t\tRTE_ETH_RSS_L3_PRE96)\n+\n+#define ETH_RSS_IPV6_PRE32_TCP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_TCP | \\\n+\t\tRTE_ETH_RSS_L3_PRE32)\n+\n+#define ETH_RSS_IPV6_PRE40_TCP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_TCP | \\\n+\t\tRTE_ETH_RSS_L3_PRE40)\n+\n+#define ETH_RSS_IPV6_PRE48_TCP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_TCP | \\\n+\t\tRTE_ETH_RSS_L3_PRE48)\n+\n+#define ETH_RSS_IPV6_PRE56_TCP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_TCP | \\\n+\t\tRTE_ETH_RSS_L3_PRE56)\n+\n+#define ETH_RSS_IPV6_PRE64_TCP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_TCP | \\\n+\t\tRTE_ETH_RSS_L3_PRE64)\n+\n+#define ETH_RSS_IPV6_PRE96_TCP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_TCP | \\\n+\t\tRTE_ETH_RSS_L3_PRE96)\n+\n+#define ETH_RSS_IPV6_PRE32_SCTP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_SCTP | \\\n+\t\tRTE_ETH_RSS_L3_PRE32)\n+\n+#define ETH_RSS_IPV6_PRE40_SCTP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_SCTP | \\\n+\t\tRTE_ETH_RSS_L3_PRE40)\n+\n+#define ETH_RSS_IPV6_PRE48_SCTP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_SCTP | \\\n+\t\tRTE_ETH_RSS_L3_PRE48)\n+\n+#define ETH_RSS_IPV6_PRE56_SCTP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_SCTP | \\\n+\t\tRTE_ETH_RSS_L3_PRE56)\n+\n+#define ETH_RSS_IPV6_PRE64_SCTP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_SCTP | \\\n+\t\tRTE_ETH_RSS_L3_PRE64)\n+\n+#define ETH_RSS_IPV6_PRE96_SCTP ( \\\n+\t\tETH_RSS_NONFRAG_IPV6_SCTP | \\\n+\t\tRTE_ETH_RSS_L3_PRE96)\n+\n #define ETH_RSS_IP ( \\\n \tETH_RSS_IPV4 | \\\n \tETH_RSS_FRAG_IPV4 | \\\n",
    "prefixes": [
        "v6",
        "1/3"
    ]
}