get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 42319,
    "url": "http://patches.dpdk.org/api/patches/42319/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180705020805.38308-7-pablo.de.lara.guarch@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": "<20180705020805.38308-7-pablo.de.lara.guarch@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180705020805.38308-7-pablo.de.lara.guarch@intel.com",
    "date": "2018-07-05T02:07:55",
    "name": "[v5,06/16] examples/ipsec-secgw: check for max supported sessions",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "7f3ee4f5a73dd71b23fd87cae1b6a7c686fd7075",
    "submitter": {
        "id": 9,
        "url": "http://patches.dpdk.org/api/people/9/?format=api",
        "name": "De Lara Guarch, Pablo",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "delegate": {
        "id": 22,
        "url": "http://patches.dpdk.org/api/users/22/?format=api",
        "username": "pdelarag",
        "first_name": "Pablo",
        "last_name": "de Lara Guarch",
        "email": "pablo.de.lara.guarch@intel.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20180705020805.38308-7-pablo.de.lara.guarch@intel.com/mbox/",
    "series": [
        {
            "id": 416,
            "url": "http://patches.dpdk.org/api/series/416/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=416",
            "date": "2018-07-05T02:07:50",
            "name": "Cryptodev API changes",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/416/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/42319/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/42319/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 193D81C3CA;\n\tThu,  5 Jul 2018 12:14:19 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 373DF1C39E\n\tfor <dev@dpdk.org>; Thu,  5 Jul 2018 12:14:06 +0200 (CEST)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Jul 2018 03:14:03 -0700",
            "from silpixa00399466.ir.intel.com (HELO\n\tsilpixa00399466.ger.corp.intel.com) ([10.237.223.220])\n\tby fmsmga008.fm.intel.com with ESMTP; 05 Jul 2018 03:13:57 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.51,311,1526367600\"; d=\"scan'208\";a=\"52772785\"",
        "From": "Pablo de Lara <pablo.de.lara.guarch@intel.com>",
        "To": "declan.doherty@intel.com, akhil.goyal@nxp.com,\n\tshally.verma@caviumnetworks.com, ravi1.kumar@amd.com,\n\tjerin.jacob@caviumnetworks.com, roy.fan.zhang@intel.com,\n\tfiona.trahe@intel.com, tdu@semihalf.com, jianjay.zhou@huawei.com",
        "Cc": "dev@dpdk.org,\n\tPablo de Lara <pablo.de.lara.guarch@intel.com>",
        "Date": "Thu,  5 Jul 2018 03:07:55 +0100",
        "Message-Id": "<20180705020805.38308-7-pablo.de.lara.guarch@intel.com>",
        "X-Mailer": "git-send-email 2.14.4",
        "In-Reply-To": "<20180705020805.38308-1-pablo.de.lara.guarch@intel.com>",
        "References": "<20180608220234.10170-1-pablo.de.lara.guarch@intel.com>\n\t<20180705020805.38308-1-pablo.de.lara.guarch@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v5 06/16] examples/ipsec-secgw: check for max\n\tsupported sessions",
        "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": "Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>\nAcked-by: Akhil Goyal <akhil.goyal@nxp.com>\n---\n examples/ipsec-secgw/ipsec-secgw.c | 6 ++++++\n 1 file changed, 6 insertions(+)",
    "diff": "diff --git a/examples/ipsec-secgw/ipsec-secgw.c b/examples/ipsec-secgw/ipsec-secgw.c\nindex a5da8b280..2582dcb6e 100644\n--- a/examples/ipsec-secgw/ipsec-secgw.c\n+++ b/examples/ipsec-secgw/ipsec-secgw.c\n@@ -1440,6 +1440,12 @@ cryptodevs_init(void)\n \t\tdev_conf.socket_id = rte_cryptodev_socket_id(cdev_id);\n \t\tdev_conf.nb_queue_pairs = qp;\n \n+\t\tuint32_t dev_max_sess = cdev_info.sym.max_nb_sessions;\n+\t\tif (dev_max_sess < (CDEV_MP_NB_OBJS / 2))\n+\t\t\trte_exit(EXIT_FAILURE,\n+\t\t\t\t\"Device does not support at least %u \"\n+\t\t\t\t\"sessions\", CDEV_MP_NB_OBJS / 2);\n+\n \t\tif (!socket_ctx[dev_conf.socket_id].session_pool) {\n \t\t\tchar mp_name[RTE_MEMPOOL_NAMESIZE];\n \t\t\tstruct rte_mempool *sess_mp;\n",
    "prefixes": [
        "v5",
        "06/16"
    ]
}