get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 54495,
    "url": "http://patches.dpdk.org/api/patches/54495/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20190606115151.27805-5-konstantin.ananyev@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": "<20190606115151.27805-5-konstantin.ananyev@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190606115151.27805-5-konstantin.ananyev@intel.com",
    "date": "2019-06-06T11:51:50",
    "name": "[v2,4/5] examples/ipsec-secgw: add bypass test case",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "9ce3a6d03890b576a85ef7b9634f14a4e5a4358d",
    "submitter": {
        "id": 33,
        "url": "http://patches.dpdk.org/api/people/33/?format=api",
        "name": "Ananyev, Konstantin",
        "email": "konstantin.ananyev@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20190606115151.27805-5-konstantin.ananyev@intel.com/mbox/",
    "series": [
        {
            "id": 4928,
            "url": "http://patches.dpdk.org/api/series/4928/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4928",
            "date": "2019-06-06T11:51:46",
            "name": "examples/ipsec-secgw: support packet",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/4928/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/54495/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/54495/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 E1A1F1B9D0;\n\tThu,  6 Jun 2019 13:52:33 +0200 (CEST)",
            "from mga18.intel.com (mga18.intel.com [134.134.136.126])\n\tby dpdk.org (Postfix) with ESMTP id DBA4C1B9D5\n\tfor <dev@dpdk.org>; Thu,  6 Jun 2019 13:52:31 +0200 (CEST)",
            "from orsmga008.jf.intel.com ([10.7.209.65])\n\tby orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t06 Jun 2019 04:52:31 -0700",
            "from sivswdev08.ir.intel.com ([10.237.217.47])\n\tby orsmga008.jf.intel.com with ESMTP; 06 Jun 2019 04:52:30 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Konstantin Ananyev <konstantin.ananyev@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "akhil.goyal@nxp.com,\n\tKonstantin Ananyev <konstantin.ananyev@intel.com>",
        "Date": "Thu,  6 Jun 2019 12:51:50 +0100",
        "Message-Id": "<20190606115151.27805-5-konstantin.ananyev@intel.com>",
        "X-Mailer": "git-send-email 2.18.0",
        "In-Reply-To": "<20190606115151.27805-1-konstantin.ananyev@intel.com>",
        "References": "<20190527184448.21264-1-konstantin.ananyev@intel.com>\n\t<20190606115151.27805-1-konstantin.ananyev@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v2 4/5] examples/ipsec-secgw: add bypass test case",
        "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": "Add simple test-case with all traffic in BYPASS mode.\nUseful for some basic test of your network environment.\n\nSigned-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>\n---\n examples/ipsec-secgw/test/bypass_defs.sh | 45 ++++++++++++++++++++++++\n 1 file changed, 45 insertions(+)\n create mode 100644 examples/ipsec-secgw/test/bypass_defs.sh",
    "diff": "diff --git a/examples/ipsec-secgw/test/bypass_defs.sh b/examples/ipsec-secgw/test/bypass_defs.sh\nnew file mode 100644\nindex 000000000..12a8a5aff\n--- /dev/null\n+++ b/examples/ipsec-secgw/test/bypass_defs.sh\n@@ -0,0 +1,45 @@\n+#! /bin/bash\n+\n+CRYPTO_DEV=${CRYPTO_DEV:-'--vdev=\"crypto_null0\"'}\n+\n+#generate cfg file for ipsec-secgw\n+config_secgw()\n+{\n+\tcat <<EOF > ${SGW_CFG_FILE}\n+\n+sp ipv4 in esp bypass pri 1 sport 0:65535 dport 0:65535\n+sp ipv6 in esp bypass pri 1 sport 0:65535 dport 0:65535\n+\n+sp ipv4 out esp bypass pri 1 sport 0:65535 dport 0:65535\n+sp ipv6 out esp bypass pri 1 sport 0:65535 dport 0:65535\n+\n+#Routing rules\n+rt ipv4 dst ${REMOTE_IPV4}/32 port 0\n+rt ipv4 dst ${LOCAL_IPV4}/32 port 1\n+\n+rt ipv6 dst ${REMOTE_IPV6}/128 port 0\n+rt ipv6 dst ${LOCAL_IPV6}/128 port 1\n+\n+#neighbours\n+neigh port 0 ${REMOTE_MAC}\n+neigh port 1 ${LOCAL_MAC}\n+EOF\n+\n+\tcat ${SGW_CFG_FILE}\n+}\n+\n+SGW_CMD_XPRM='-w 300'\n+\n+config_remote_xfrm()\n+{\n+\tssh ${REMOTE_HOST} ip xfrm policy flush\n+\tssh ${REMOTE_HOST} ip xfrm state flush\n+\n+\tssh ${REMOTE_HOST} ip xfrm policy list\n+\tssh ${REMOTE_HOST} ip xfrm state list\n+}\n+\n+config6_remote_xfrm()\n+{\n+\tconfig_remote_xfrm\n+}\n",
    "prefixes": [
        "v2",
        "4/5"
    ]
}