get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 56449,
    "url": "http://patches.dpdk.org/api/patches/56449/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190715095623.579-4-marcinx.a.zapolski@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": "<20190715095623.579-4-marcinx.a.zapolski@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190715095623.579-4-marcinx.a.zapolski@intel.com",
    "date": "2019-07-15T09:56:23",
    "name": "[3/3] examples/ipsec-secgw: remove usage of internal structure",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "0047205c1d71f29e1885f8fa49dbadf0e643f89b",
    "submitter": {
        "id": 1362,
        "url": "http://patches.dpdk.org/api/people/1362/?format=api",
        "name": "Marcin Zapolski",
        "email": "marcinx.a.zapolski@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190715095623.579-4-marcinx.a.zapolski@intel.com/mbox/",
    "series": [
        {
            "id": 5498,
            "url": "http://patches.dpdk.org/api/series/5498/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5498",
            "date": "2019-07-15T09:56:20",
            "name": "examples: remove usage of internal structures",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/5498/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/56449/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/56449/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 F37481B9AC;\n\tMon, 15 Jul 2019 15:14:54 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 2B5F72C23\n\tfor <dev@dpdk.org>; Mon, 15 Jul 2019 11:57:56 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t15 Jul 2019 02:57:55 -0700",
            "from marcinzx-mobl.ger.corp.intel.com ([10.103.104.99])\n\tby fmsmga001.fm.intel.com with ESMTP; 15 Jul 2019 02:57:54 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,493,1557212400\"; d=\"scan'208\";a=\"187086176\"",
        "From": "Marcin Zapolski <marcinx.a.zapolski@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Marcin Zapolski <marcinx.a.zapolski@intel.com>",
        "Date": "Mon, 15 Jul 2019 11:56:23 +0200",
        "Message-Id": "<20190715095623.579-4-marcinx.a.zapolski@intel.com>",
        "X-Mailer": "git-send-email 2.22.0.windows.1",
        "In-Reply-To": "<20190715095623.579-1-marcinx.a.zapolski@intel.com>",
        "References": "<20190715095623.579-1-marcinx.a.zapolski@intel.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "X-Mailman-Approved-At": "Mon, 15 Jul 2019 15:14:48 +0200",
        "Subject": "[dpdk-dev] [PATCH 3/3] examples/ipsec-secgw: remove usage of\n\tinternal structure",
        "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": "Modify ipsec-secgw example app to use rte_eth_dev_info_get instead of\nrte_eth_dev.\n\nSigned-off-by: Marcin Zapolski <marcinx.a.zapolski@intel.com>\n---\n examples/ipsec-secgw/ipsec.c | 9 ++++-----\n 1 file changed, 4 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/examples/ipsec-secgw/ipsec.c b/examples/ipsec-secgw/ipsec.c\nindex 7b8533077..7d3f5f736 100644\n--- a/examples/ipsec-secgw/ipsec.c\n+++ b/examples/ipsec-secgw/ipsec.c\n@@ -186,23 +186,22 @@ create_session(struct ipsec_ctx *ipsec_ctx, struct ipsec_sa *sa)\n \t\t\t\t\t.rss_key = rss_key,\n \t\t\t\t\t.rss_key_len = 40,\n \t\t\t\t};\n-\t\t\t\tstruct rte_eth_dev *eth_dev;\n+\t\t\t\tstruct rte_eth_dev_info dev_info;\n \t\t\t\tuint16_t queue[RTE_MAX_QUEUES_PER_PORT];\n \t\t\t\tstruct rte_flow_action_rss action_rss;\n \t\t\t\tunsigned int i;\n \t\t\t\tunsigned int j;\n \n+\t\t\t\trte_eth_dev_info_get(sa->portid, &dev_info);\n \t\t\t\tsa->action[2].type = RTE_FLOW_ACTION_TYPE_END;\n \t\t\t\t/* Try RSS. */\n \t\t\t\tsa->action[1].type = RTE_FLOW_ACTION_TYPE_RSS;\n \t\t\t\tsa->action[1].conf = &action_rss;\n-\t\t\t\teth_dev = ctx->device;\n \t\t\t\trte_eth_dev_rss_hash_conf_get(sa->portid,\n \t\t\t\t\t\t\t      &rss_conf);\n \t\t\t\tfor (i = 0, j = 0;\n-\t\t\t\t     i < eth_dev->data->nb_rx_queues; ++i)\n-\t\t\t\t\tif (eth_dev->data->rx_queues[i])\n-\t\t\t\t\t\tqueue[j++] = i;\n+\t\t\t\t     i < dev_info.nb_rx_queues; ++i)\n+\t\t\t\t\tqueue[j++] = i;\n \t\t\t\taction_rss = (struct rte_flow_action_rss){\n \t\t\t\t\t.types = rss_conf.rss_hf,\n \t\t\t\t\t.key_len = rss_conf.rss_key_len,\n",
    "prefixes": [
        "3/3"
    ]
}