get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 77545,
    "url": "http://patches.dpdk.org/api/patches/77545/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1600012140-70151-3-git-send-email-bingz@nvidia.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": "<1600012140-70151-3-git-send-email-bingz@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1600012140-70151-3-git-send-email-bingz@nvidia.com",
    "date": "2020-09-13T15:48:58",
    "name": "[RFC,v2,2/4] testpmd: add item transmit queue in flow CLI",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c506c1d667b4ecc7135c91fdf63292e1f02db212",
    "submitter": {
        "id": 1976,
        "url": "http://patches.dpdk.org/api/people/1976/?format=api",
        "name": "Bing Zhao",
        "email": "bingz@nvidia.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1600012140-70151-3-git-send-email-bingz@nvidia.com/mbox/",
    "series": [
        {
            "id": 12169,
            "url": "http://patches.dpdk.org/api/series/12169/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=12169",
            "date": "2020-09-13T15:48:56",
            "name": "introduce support for hairpin between two ports",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/12169/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/77545/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/77545/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 7496BA04C9;\n\tSun, 13 Sep 2020 17:49:49 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5417E1BE81;\n\tSun, 13 Sep 2020 17:49:49 +0200 (CEST)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130])\n by dpdk.org (Postfix) with ESMTP id 971C9E07\n for <dev@dpdk.org>; Sun, 13 Sep 2020 17:49:47 +0200 (CEST)"
        ],
        "From": "Bing Zhao <bingz@nvidia.com>",
        "To": "thomas@monjalon.net, orika@nvidia.com, ferruh.yigit@intel.com,\n arybchenko@solarflare.com",
        "Cc": "dev@dpdk.org",
        "Date": "Sun, 13 Sep 2020 23:48:58 +0800",
        "Message-Id": "<1600012140-70151-3-git-send-email-bingz@nvidia.com>",
        "X-Mailer": "git-send-email 2.5.5",
        "In-Reply-To": "<1600012140-70151-1-git-send-email-bingz@nvidia.com>",
        "References": "\n <CY4PR1201MB0072A4383E611EB8B65D89A6D0240@CY4PR1201MB0072.namprd12.prod.outlook.com>\n <1600012140-70151-1-git-send-email-bingz@nvidia.com>",
        "Subject": "[dpdk-dev] [RFC PATCH v2 2/4] testpmd: add item transmit queue in\n\tflow CLI",
        "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": "In the testpmd command line for flow creation, add the keyword\n'tx_queue' in the pattern scope so the item transmit queue ID\ncould be specified during the flow creation.\nThe index of the transmit queue should be in the range\n[0, nb_tx_queue - 1] supplied to rte_eth_dev_configure() during\ninitialization. Normal TX queues and hairpin TX queues will have a\nunified index number sequence.\n\nSigned-off-by: Bing Zhao <bingz@nvidia.com>\n---\n app/test-pmd/cmdline_flow.c | 18 ++++++++++++++++++\n 1 file changed, 18 insertions(+)",
    "diff": "diff --git a/app/test-pmd/cmdline_flow.c b/app/test-pmd/cmdline_flow.c\nindex 6263d30..f7816fc 100644\n--- a/app/test-pmd/cmdline_flow.c\n+++ b/app/test-pmd/cmdline_flow.c\n@@ -109,6 +109,8 @@ enum index {\n \tITEM_PHY_PORT_INDEX,\n \tITEM_PORT_ID,\n \tITEM_PORT_ID_ID,\n+\tITEM_TX_QUEUE,\n+\tITEM_TX_QUEUE_ID,\n \tITEM_MARK,\n \tITEM_MARK_ID,\n \tITEM_RAW,\n@@ -759,6 +761,7 @@ static const enum index next_item[] = {\n \tITEM_VF,\n \tITEM_PHY_PORT,\n \tITEM_PORT_ID,\n+\tITEM_TX_QUEUE,\n \tITEM_MARK,\n \tITEM_RAW,\n \tITEM_ETH,\n@@ -1954,6 +1957,21 @@ static const struct token token_list[] = {\n \t\t.next = NEXT(item_port_id, NEXT_ENTRY(UNSIGNED), item_param),\n \t\t.args = ARGS(ARGS_ENTRY(struct rte_flow_item_port_id, id)),\n \t},\n+\t[ITEM_TX_QUEUE] = {\n+\t\t.name = \"tx_queue\",\n+\t\t.help = \"match traffic from a given transmit queue\",\n+\t\t.priv = PRIV_ITEM(QUEUE,\n+\t\t\t\t  sizeof(struct rte_flow_item_tx_queue)),\n+\t\t.next = NEXT(NEXT_ENTRY(ITEM_TX_QUEUE_ID)),\n+\t\t.call = parse_vc,\n+\t},\n+\t[ITEM_TX_QUEUE_ID] = {\n+\t\t.name = \"index\",\n+\t\t.help = \"TX queue index of this port\",\n+\t\t.next = NEXT(NEXT_ENTRY(ITEM_NEXT), NEXT_ENTRY(UNSIGNED),\n+\t\t\t     item_param),\n+\t\t.args = ARGS(ARGS_ENTRY(struct rte_flow_item_tx_queue, queue)),\n+\t},\n \t[ITEM_MARK] = {\n \t\t.name = \"mark\",\n \t\t.help = \"match traffic against value set in previously matched rule\",\n",
    "prefixes": [
        "RFC",
        "v2",
        "2/4"
    ]
}