get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 71591,
    "url": "http://patches.dpdk.org/api/patches/71591/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200615021858.13985-6-chenxux.di@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": "<20200615021858.13985-6-chenxux.di@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200615021858.13985-6-chenxux.di@intel.com",
    "date": "2020-06-15T02:18:58",
    "name": "[v2,5/5] app/testpmd: support query RSS config in flow query",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "da149d31102a320e52baabd95eee0069304ce56f",
    "submitter": {
        "id": 1409,
        "url": "http://patches.dpdk.org/api/people/1409/?format=api",
        "name": "Chenxu Di",
        "email": "chenxux.di@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/20200615021858.13985-6-chenxux.di@intel.com/mbox/",
    "series": [
        {
            "id": 10457,
            "url": "http://patches.dpdk.org/api/series/10457/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=10457",
            "date": "2020-06-15T02:18:53",
            "name": "re-implement legacy filter functions by private API",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/10457/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/71591/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/71591/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 4971AA0093;\n\tMon, 15 Jun 2020 04:38:21 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id EF8181BF92;\n\tMon, 15 Jun 2020 04:37:49 +0200 (CEST)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by dpdk.org (Postfix) with ESMTP id 41D534C90\n for <dev@dpdk.org>; Mon, 15 Jun 2020 04:37:47 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Jun 2020 19:37:46 -0700",
            "from intel.sh.intel.com ([10.239.255.20])\n by fmsmga001.fm.intel.com with ESMTP; 14 Jun 2020 19:37:45 -0700"
        ],
        "IronPort-SDR": [
            "\n vUE9W/UVajrq5+YhycCPs8g0FVIZvp33xpKwPGTAVQIhv4iTbf8jJ4WwDWoPcTI4P1Rf6mwnuv\n p7OBywoC0M2g==",
            "\n PEivAKQyCTkLTLqhf2yNQ3C0ve5ZDR2y7KoRgxrUTbQR3oZm7NIIEb+3vR0ApCDTZ2IL5n15jJ\n cu9dGz3l2W3A=="
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.73,513,1583222400\"; d=\"scan'208\";a=\"382382906\"",
        "From": "Chenxu Di <chenxux.di@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "beilei.xing@intel.com, Yang Qiming <qiming.yang@intel.com>,\n Chenxu Di <chenxux.di@intel.com>",
        "Date": "Mon, 15 Jun 2020 02:18:58 +0000",
        "Message-Id": "<20200615021858.13985-6-chenxux.di@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200615021858.13985-1-chenxux.di@intel.com>",
        "References": "<20200611060142.75465-1-chenxux.di@intel.com>\n <20200615021858.13985-1-chenxux.di@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 5/5] app/testpmd: support query RSS config in\n\tflow query",
        "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": "This patch support RSS action in flow query.\nIt can display the RSS configuration of the specified rule.\n\nSigned-off-by: Chenxu Di <chenxux.di@intel.com>\n---\n app/test-pmd/config.c | 55 +++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 55 insertions(+)",
    "diff": "diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c\nindex f519246c7..7e3cccf9a 100644\n--- a/app/test-pmd/config.c\n+++ b/app/test-pmd/config.c\n@@ -1378,6 +1378,56 @@ port_flow_complain(struct rte_flow_error *error)\n \treturn -err;\n }\n \n+static void\n+rss_config_display(struct rte_flow_action_rss *rss_conf)\n+{\n+\tuint8_t i;\n+\n+\tif (rss_conf == NULL) {\n+\t\tprintf(\"Invalid rule\\n\");\n+\t\treturn;\n+\t}\n+\n+\tprintf(\"RSS:\\n\"\n+\t       \" queues:\");\n+\tif (rss_conf->queue_num == 0)\n+\t\tprintf(\" none\");\n+\tfor (i = 0; i < rss_conf->queue_num; i++)\n+\t\tprintf(\" %d\", rss_conf->queue[i]);\n+\n+\tprintf(\"\\n function:\");\n+\tswitch (rss_conf->func) {\n+\tcase RTE_ETH_HASH_FUNCTION_DEFAULT:\n+\t\tprintf(\" default\\n\");\n+\t\tbreak;\n+\tcase RTE_ETH_HASH_FUNCTION_TOEPLITZ:\n+\t\tprintf(\" toeplitz\\n\");\n+\t\tbreak;\n+\tcase RTE_ETH_HASH_FUNCTION_SIMPLE_XOR:\n+\t\tprintf(\" simple_xor\\n\");\n+\t\tbreak;\n+\tcase RTE_ETH_HASH_FUNCTION_SYMMETRIC_TOEPLITZ:\n+\t\tprintf(\" symmetric_toeplitz\\n\");\n+\t\tbreak;\n+\tdefault:\n+\t\tprintf(\" Unknown function\\n\");\n+\t\treturn;\n+\t}\n+\n+\tprintf(\" types:\\n\");\n+\tif (rss_conf->types == 0) {\n+\t\tprintf(\"  none\\n\");\n+\t\treturn;\n+\t}\n+\tfor (i = 0; rss_type_table[i].str; i++) {\n+\t\tif ((rss_conf->types &\n+\t\t    rss_type_table[i].rss_type) ==\n+\t\t    rss_type_table[i].rss_type &&\n+\t\t    rss_type_table[i].rss_type != 0)\n+\t\t\tprintf(\"  %s\\n\", rss_type_table[i].str);\n+\t}\n+}\n+\n /** Validate flow rule. */\n int\n port_flow_validate(portid_t port_id,\n@@ -1564,6 +1614,7 @@ port_flow_query(portid_t port_id, uint32_t rule,\n \tconst char *name;\n \tunion {\n \t\tstruct rte_flow_query_count count;\n+\t\tstruct rte_flow_action_rss rss_conf;\n \t} query;\n \tint ret;\n \n@@ -1585,6 +1636,7 @@ port_flow_query(portid_t port_id, uint32_t rule,\n \t\treturn port_flow_complain(&error);\n \tswitch (action->type) {\n \tcase RTE_FLOW_ACTION_TYPE_COUNT:\n+\tcase RTE_FLOW_ACTION_TYPE_RSS:\n \t\tbreak;\n \tdefault:\n \t\tprintf(\"Cannot query action type %d (%s)\\n\",\n@@ -1609,6 +1661,9 @@ port_flow_query(portid_t port_id, uint32_t rule,\n \t\t       query.count.hits,\n \t\t       query.count.bytes);\n \t\tbreak;\n+\tcase RTE_FLOW_ACTION_TYPE_RSS:\n+\t\trss_config_display(&query.rss_conf);\n+\t\tbreak;\n \tdefault:\n \t\tprintf(\"Cannot display result for action type %d (%s)\\n\",\n \t\t       action->type, name);\n",
    "prefixes": [
        "v2",
        "5/5"
    ]
}