get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2517,
    "url": "https://patches.dpdk.org/api/patches/2517/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1422243805-10906-4-git-send-email-jijiang.liu@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": "<1422243805-10906-4-git-send-email-jijiang.liu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1422243805-10906-4-git-send-email-jijiang.liu@intel.com",
    "date": "2015-01-26T03:43:22",
    "name": "[dpdk-dev,3/6] app/testpmd:test RX tunnel filter for NVGRE packet",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "3ea72c76b2fa4f4b829080697fd555ca20807de9",
    "submitter": {
        "id": 52,
        "url": "https://patches.dpdk.org/api/people/52/?format=api",
        "name": "Jijiang Liu",
        "email": "jijiang.liu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1422243805-10906-4-git-send-email-jijiang.liu@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/2517/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/2517/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 8F7C25AAD;\n\tMon, 26 Jan 2015 04:43:43 +0100 (CET)",
            "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id A28F45A96\n\tfor <dev@dpdk.org>; Mon, 26 Jan 2015 04:43:38 +0100 (CET)",
            "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby fmsmga102.fm.intel.com with ESMTP; 25 Jan 2015 19:43:38 -0800",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 25 Jan 2015 19:43:37 -0800",
            "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t0Q3hZFr026372\n\tfor <dev@dpdk.org>; Mon, 26 Jan 2015 11:43:35 +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\n\tt0Q3hX3m010962 for <dev@dpdk.org>; Mon, 26 Jan 2015 11:43:35 +0800",
            "(from jijiangl@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t0Q3hXeP010958\n\tfor dev@dpdk.org; Mon, 26 Jan 2015 11:43:33 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.09,466,1418112000\"; d=\"scan'208\";a=\"675811283\"",
        "From": "Jijiang Liu <jijiang.liu@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Mon, 26 Jan 2015 11:43:22 +0800",
        "Message-Id": "<1422243805-10906-4-git-send-email-jijiang.liu@intel.com>",
        "X-Mailer": "git-send-email 1.7.12.2",
        "In-Reply-To": "<1422243805-10906-1-git-send-email-jijiang.liu@intel.com>",
        "References": "<1422243805-10906-1-git-send-email-jijiang.liu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 3/6] app/testpmd:test RX tunnel filter for NVGRE\n\tpacket",
        "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": "Extend the \"tunnel_filter\" command in testpmd to test the RX tunnel filter API for NVGRE packet. \n\nSigned-off-by Jijiang Liu <jijiang.liu@intel.com>\n---\n app/test-pmd/cmdline.c |   18 +++++++++++-------\n 1 files changed, 11 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 882a5a2..ab25e24 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -292,11 +292,11 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\" a port\\n\\n\"\n \n \t\t\t\"tunnel_filter add (port_id) (outer_mac) (inner_mac) (ip_addr) \"\n-\t\t\t\"(inner_vlan) (tunnel_type) (filter_type) (tenant_id) (queue_id)\\n\"\n+\t\t\t\"(inner_vlan) (vxlan|nvgre) (filter_type) (tenant_id) (queue_id)\\n\"\n \t\t\t\"   add a tunnel filter of a port.\\n\\n\"\n \n \t\t\t\"tunnel_filter rm (port_id) (outer_mac) (inner_mac) (ip_addr) \"\n-\t\t\t\"(inner_vlan) (tunnel_type) (filter_type) (tenant_id) (queue_id)\\n\"\n+\t\t\t\"(inner_vlan) (vxlan|nvgre) (filter_type) (tenant_id) (queue_id)\\n\"\n \t\t\t\"   remove a tunnel filter of a port.\\n\\n\"\n \n \t\t\t\"rx_vxlan_port add (udp_port) (port_id)\\n\"\n@@ -6756,6 +6756,8 @@ cmd_tunnel_filter_parsed(void *parsed_result,\n \telse if (!strcmp(res->filter_type, \"omac-imac-tenid\"))\n \t\ttunnel_filter_conf.filter_type =\n \t\t\tRTE_TUNNEL_FILTER_OMAC_TENID_IMAC;\n+\telse if (!strcmp(res->filter_type, \"iip\"))\n+\t\ttunnel_filter_conf.filter_type = ETH_TUNNEL_FILTER_IIP;\n \telse {\n \t\tprintf(\"The filter type is not supported\");\n \t\treturn;\n@@ -6763,8 +6765,10 @@ cmd_tunnel_filter_parsed(void *parsed_result,\n \n \tif (!strcmp(res->tunnel_type, \"vxlan\"))\n \t\ttunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_VXLAN;\n+\tif (!strcmp(res->tunnel_type, \"nvgre\"))\n+\t\ttunnel_filter_conf.tunnel_type = RTE_TUNNEL_TYPE_NVGRE;\n \telse {\n-\t\tprintf(\"Only VXLAN is supported now.\\n\");\n+\t\tprintf(\"The tunnel type is supported now.\\n\");\n \t\treturn;\n \t}\n \n@@ -6808,12 +6812,12 @@ cmdline_parse_token_ipaddr_t cmd_tunnel_filter_ip_value =\n \tip_value);\n cmdline_parse_token_string_t cmd_tunnel_filter_tunnel_type =\n \tTOKEN_STRING_INITIALIZER(struct cmd_tunnel_filter_result,\n-\ttunnel_type, \"vxlan\");\n+\ttunnel_type, \"vxlan#nvgre\");\n \n cmdline_parse_token_string_t cmd_tunnel_filter_filter_type =\n \tTOKEN_STRING_INITIALIZER(struct cmd_tunnel_filter_result,\n \tfilter_type, \"imac-ivlan#imac-ivlan-tenid#imac-tenid#\"\n-\t\t\"imac#omac-imac-tenid\");\n+\t\t\"imac#omac-imac-tenid#iip\");\n cmdline_parse_token_num_t cmd_tunnel_filter_tenant_id =\n \tTOKEN_NUM_INITIALIZER(struct cmd_tunnel_filter_result,\n \ttenant_id, UINT32);\n@@ -6826,9 +6830,9 @@ cmdline_parse_inst_t cmd_tunnel_filter = {\n \t.data = (void *)0,\n \t.help_str = \"add/rm tunnel filter of a port: \"\n \t\t\t\"tunnel_filter add port_id outer_mac inner_mac ip \"\n-\t\t\t\"inner_vlan tunnel_type(vxlan) filter_type \"\n+\t\t\t\"inner_vlan tunnel_type(vxlan|nvgre) filter_type \"\n \t\t\t\"(imac-ivlan|imac-ivlan-tenid|imac-tenid|\"\n-\t\t\t\"imac|omac-imac-tenid) \"\n+\t\t\t\"imac|omac-imac-tenid|iip) \"\n \t\t\t\"tenant_id queue_num\",\n \t.tokens = {\n \t\t(void *)&cmd_tunnel_filter_cmd,\n",
    "prefixes": [
        "dpdk-dev",
        "3/6"
    ]
}