get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 558,
    "url": "https://patches.dpdk.org/api/patches/558/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1411711418-12881-15-git-send-email-jingjing.wu@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": "<1411711418-12881-15-git-send-email-jingjing.wu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1411711418-12881-15-git-send-email-jingjing.wu@intel.com",
    "date": "2014-09-26T06:03:32",
    "name": "[dpdk-dev,v3,14/20] app/test-pmd: add test command to flush flow director table",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "eeea9303a47d76226c2470d124f5a75943092a90",
    "submitter": {
        "id": 47,
        "url": "https://patches.dpdk.org/api/people/47/?format=api",
        "name": "Jingjing Wu",
        "email": "jingjing.wu@intel.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1411711418-12881-15-git-send-email-jingjing.wu@intel.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/558/comments/",
    "check": "pending",
    "checks": "https://patches.dpdk.org/api/patches/558/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 3BE037E33;\n\tFri, 26 Sep 2014 07:58:22 +0200 (CEST)",
            "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 3655A7DF0\n\tfor <dev@dpdk.org>; Fri, 26 Sep 2014 07:58:18 +0200 (CEST)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga101.jf.intel.com with ESMTP; 25 Sep 2014 23:04:38 -0700",
            "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga001.jf.intel.com with ESMTP; 25 Sep 2014 23:04:15 -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 s8Q64DdL029338;\n\tFri, 26 Sep 2014 14:04:13 +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 s8Q64Bqk013018; Fri, 26 Sep 2014 14:04:13 +0800",
            "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id s8Q64Bia013014; \n\tFri, 26 Sep 2014 14:04:11 +0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.04,603,1406617200\"; d=\"scan'208\";a=\"579305160\"",
        "From": "Jingjing Wu <jingjing.wu@intel.com>",
        "To": "dev@dpdk.org",
        "Date": "Fri, 26 Sep 2014 14:03:32 +0800",
        "Message-Id": "<1411711418-12881-15-git-send-email-jingjing.wu@intel.com>",
        "X-Mailer": "git-send-email 1.7.4.1",
        "In-Reply-To": "<1411711418-12881-1-git-send-email-jingjing.wu@intel.com>",
        "References": "<1411711418-12881-1-git-send-email-jingjing.wu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 14/20] app/test-pmd: add test command to flush\n\tflow director table",
        "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": "add test command to flush flow director table\n\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\nAcked-by: Chen Jing D(Mark) <jing.d.chen@intel.com>\nAcked-by: Helin Zhang <helin.zhang@intel.com>\n---\n app/test-pmd/cmdline.c | 49 +++++++++++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 49 insertions(+)",
    "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 173e863..240a464 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -682,6 +682,9 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\" flexwords (flexwords_value) (drop|fwd)\"\n \t\t\t\" queue (queue_id) fd_id (fd_id_value)\\n\"\n \t\t\t\"    Add/Del a SCTP type flow director filter.\\n\\n\"\n+\n+\t\t\t\"flush_flow_diretor (port_id)\\n\"\n+\t\t\t\"    Flush all flow director entries of a device.\\n\\n\"\n \t\t);\n \t}\n }\n@@ -7855,6 +7858,51 @@ cmdline_parse_inst_t cmd_add_del_sctp_flow_director = {\n \t},\n };\n \n+struct cmd_flush_flow_director_result {\n+\tcmdline_fixed_string_t flush_flow_director;\n+\tuint8_t port_id;\n+};\n+\n+cmdline_parse_token_string_t cmd_flush_flow_director_flush =\n+\tTOKEN_STRING_INITIALIZER(struct cmd_flush_flow_director_result,\n+\t\t\t\t flush_flow_director, \"flush_flow_director\");\n+cmdline_parse_token_num_t cmd_flush_flow_director_port_id =\n+\tTOKEN_NUM_INITIALIZER(struct cmd_flush_flow_director_result,\n+\t\t\t      port_id, UINT8);\n+\n+static void\n+cmd_flush_flow_director_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_flow_director_result *res = parsed_result;\n+\tint ret = 0;\n+\n+\tret = rte_eth_dev_filter_supported(res->port_id, RTE_ETH_FILTER_FDIR);\n+\tif (ret < 0) {\n+\t\tprintf(\"flow director is not supported on port %u.\\n\",\n+\t\t\tres->port_id);\n+\t\treturn;\n+\t}\n+\n+\tret = rte_eth_dev_filter_ctrl(res->port_id, RTE_ETH_FILTER_FDIR,\n+\t\t\tRTE_ETH_FILTER_OP_FLUSH, NULL);\n+\tif (ret < 0)\n+\t\tprintf(\"flow director table flushing error: (%s)\\n\",\n+\t\t\tstrerror(-ret));\n+}\n+\n+cmdline_parse_inst_t cmd_flush_flow_director = {\n+\t.f = cmd_flush_flow_director_parsed,\n+\t.data = NULL,\n+\t.help_str = \"flush all flow director entries of a device on NIC\",\n+\t.tokens = {\n+\t\t(void *)&cmd_flush_flow_director_flush,\n+\t\t(void *)&cmd_flush_flow_director_port_id,\n+\t\tNULL,\n+\t},\n+};\n+\n /* ******************************************************************************** */\n \n /* list of instructions */\n@@ -7984,6 +8032,7 @@ cmdline_parse_ctx_t main_ctx[] = {\n \t(cmdline_parse_inst_t *)&cmd_add_del_ip_flow_director,\n \t(cmdline_parse_inst_t *)&cmd_add_del_udp_flow_director,\n \t(cmdline_parse_inst_t *)&cmd_add_del_sctp_flow_director,\n+\t(cmdline_parse_inst_t *)&cmd_flush_flow_director,\n \tNULL,\n };\n \n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "14/20"
    ]
}