get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 7759,
    "url": "https://patches.dpdk.org/api/patches/7759/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445321912-1484-3-git-send-email-helin.zhang@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<1445321912-1484-3-git-send-email-helin.zhang@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1445321912-1484-3-git-send-email-helin.zhang@intel.com",
    "date": "2015-10-20T06:18:32",
    "name": "[dpdk-dev,v2,2/2] app/testpmd: add test commands for selecting different GRE key sizes",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e666bda0fea723e645a6b52dab80870023a63121",
    "submitter": {
        "id": 14,
        "url": "https://patches.dpdk.org/api/people/14/?format=api",
        "name": "Zhang, Helin",
        "email": "helin.zhang@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445321912-1484-3-git-send-email-helin.zhang@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/7759/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/7759/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 [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id C7F928E95;\n\tTue, 20 Oct 2015 08:18:47 +0200 (CEST)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby dpdk.org (Postfix) with ESMTP id F41B68E86\n\tfor <dev@dpdk.org>; Tue, 20 Oct 2015 08:18:44 +0200 (CEST)",
            "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby orsmga103.jf.intel.com with ESMTP; 19 Oct 2015 23:18:44 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby fmsmga001.fm.intel.com with ESMTP; 19 Oct 2015 23:18:44 -0700",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t9K6IfD4029256;\n\tTue, 20 Oct 2015 14:18:41 +0800",
            "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t9K6Ic7k001533; Tue, 20 Oct 2015 14:18:40 +0800",
            "(from hzhan75@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t9K6IcL6001529; \n\tTue, 20 Oct 2015 14:18:38 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.17,706,1437462000\"; d=\"scan'208\";a=\"814970002\"",
        "From": "Helin Zhang <helin.zhang@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Tue, 20 Oct 2015 14:18:32 +0800",
        "Message-Id": "<1445321912-1484-3-git-send-email-helin.zhang@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1445321912-1484-1-git-send-email-helin.zhang@intel.com>",
        "References": "<1443078979-20774-1-git-send-email-helin.zhang@intel.com>\n\t<1445321912-1484-1-git-send-email-helin.zhang@intel.com>",
        "Cc": "yulong.pei@intel.com",
        "Subject": "[dpdk-dev] [PATCH v2 2/2] app/testpmd: add test commands for\n\tselecting different GRE key sizes",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "patches and discussions about DPDK <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Test commands are added to support selecting differnt length of GRE key.\n\nSigned-off-by: Helin Zhang <helin.zhang@intel.com>\nSigned-off-by: Andrey Chilikin <andrey.chilikin@intel.com>\n---\n app/test-pmd/cmdline.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 52 insertions(+)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex a71b200..fef0011 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -6623,6 +6623,57 @@ cmdline_parse_inst_t cmd_tunnel_udp_config = {\n \t},\n };\n \n+/* *** GLOBAL CONFIG *** */\n+struct cmd_global_config_result {\n+\tcmdline_fixed_string_t cmd;\n+\tuint8_t port_id;\n+\tcmdline_fixed_string_t cfg_type;\n+\tuint8_t len;\n+};\n+\n+static void\n+cmd_global_config_parsed(void *parsed_result,\n+\t\t\t __attribute__((unused)) struct cmdline *cl,\n+\t\t\t __attribute__((unused)) void *data)\n+{\n+\tstruct cmd_global_config_result *res = parsed_result;\n+\tstruct rte_eth_global_cfg conf;\n+\tint ret;\n+\n+\tmemset(&conf, 0, sizeof(conf));\n+\tconf.cfg_type = RTE_ETH_GLOBAL_CFG_TYPE_GRE_KEY_LEN;\n+\tconf.cfg.gre_key_len = res->len;\n+\tret = rte_eth_dev_filter_ctrl(res->port_id, RTE_ETH_FILTER_NONE,\n+\t\t\t\t      RTE_ETH_FILTER_SET, &conf);\n+\tif (ret != 0)\n+\t\tprintf(\"Global config error\\n\");\n+}\n+\n+cmdline_parse_token_string_t cmd_global_config_cmd =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_global_config_result, cmd,\n+\t\t\"global_config\");\n+cmdline_parse_token_num_t cmd_global_config_port_id =\n+\tTOKEN_NUM_INITIALIZER(struct cmd_global_config_result, port_id, UINT8);\n+cmdline_parse_token_string_t cmd_global_config_type =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_global_config_result,\n+\t\tcfg_type, \"gre-key-len\");\n+cmdline_parse_token_num_t cmd_global_config_gre_key_len =\n+\tTOKEN_NUM_INITIALIZER(struct cmd_global_config_result,\n+\t\tlen, UINT8);\n+\n+cmdline_parse_inst_t cmd_global_config = {\n+\t.f = cmd_global_config_parsed,\n+\t.data = (void *)NULL,\n+\t.help_str = \"global_config <port_id> gre-key-len <number>\",\n+\t.tokens = {\n+\t\t(void *)&cmd_global_config_cmd,\n+\t\t(void *)&cmd_global_config_port_id,\n+\t\t(void *)&cmd_global_config_type,\n+\t\t(void *)&cmd_global_config_gre_key_len,\n+\t\tNULL,\n+\t},\n+};\n+\n /* *** CONFIGURE VM MIRROR VLAN/POOL RULE *** */\n struct cmd_set_mirror_mask_result {\n \tcmdline_fixed_string_t set;\n@@ -9202,6 +9253,7 @@ cmdline_parse_ctx_t main_ctx[] = {\n \t(cmdline_parse_inst_t *)&cmd_vf_rate_limit,\n \t(cmdline_parse_inst_t *)&cmd_tunnel_filter,\n \t(cmdline_parse_inst_t *)&cmd_tunnel_udp_config,\n+\t(cmdline_parse_inst_t *)&cmd_global_config,\n \t(cmdline_parse_inst_t *)&cmd_set_mirror_mask,\n \t(cmdline_parse_inst_t *)&cmd_set_mirror_link,\n \t(cmdline_parse_inst_t *)&cmd_reset_mirror_rule,\n",
    "prefixes": [
        "dpdk-dev",
        "v2",
        "2/2"
    ]
}