Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47739/?format=api
http://patchwork.dpdk.org/api/patches/47739/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1541158623-29742-5-git-send-email-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1541158623-29742-5-git-send-email-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1541158623-29742-5-git-send-email-cristian.dumitrescu@intel.com", "date": "2018-11-02T11:36:56", "name": "[05/12] examples/ip_pipeline: track table rules on delete", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "767f67b89b2f44414f140408cedb316727e7a22a", "submitter": { "id": 19, "url": "http://patchwork.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 10018, "url": "http://patchwork.dpdk.org/api/users/10018/?format=api", "username": "cristian_dumitrescu", "first_name": "Cristian", "last_name": "Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1541158623-29742-5-git-send-email-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 2226, "url": "http://patchwork.dpdk.org/api/series/2226/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=2226", "date": "2018-11-02T11:36:52", "name": "[01/12] examples/ip_pipeline: add rule list per table", "version": 1, "mbox": "http://patchwork.dpdk.org/series/2226/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/47739/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/47739/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 021451B44A;\n\tFri, 2 Nov 2018 12:37:15 +0100 (CET)", "from mga09.intel.com (mga09.intel.com [134.134.136.24])\n\tby dpdk.org (Postfix) with ESMTP id 3FC0A1B43D\n\tfor <dev@dpdk.org>; Fri, 2 Nov 2018 12:37:11 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t02 Nov 2018 04:37:10 -0700", "from silpixa00382658.ir.intel.com ([10.237.223.29])\n\tby orsmga002.jf.intel.com with ESMTP; 02 Nov 2018 04:37:09 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,455,1534834800\"; d=\"scan'208\";a=\"105381784\"", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "Jasvinder Singh <jasvinder.singh@intel.com>,\n\tHongjun Ni <hongjun.ni@intel.com>", "Date": "Fri, 2 Nov 2018 11:36:56 +0000", "Message-Id": "<1541158623-29742-5-git-send-email-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1541158623-29742-1-git-send-email-cristian.dumitrescu@intel.com>", "References": "<1541158623-29742-1-git-send-email-cristian.dumitrescu@intel.com>", "Subject": "[dpdk-dev] [PATCH 05/12] examples/ip_pipeline: track table rules on\n\tdelete", "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": "Support table rule tracking on table rule delete operation.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Jasvinder Singh <jasvinder.singh@intel.com>\nSigned-off-by: Hongjun Ni <hongjun.ni@intel.com>\n---\n examples/ip_pipeline/thread.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/examples/ip_pipeline/thread.c b/examples/ip_pipeline/thread.c\nindex d2daacc..a3cd3c0 100644\n--- a/examples/ip_pipeline/thread.c\n+++ b/examples/ip_pipeline/thread.c\n@@ -1672,6 +1672,7 @@ pipeline_table_rule_delete(const char *pipeline_name,\n \tstruct table_rule_match *match)\n {\n \tstruct pipeline *p;\n+\tstruct table *table;\n \tstruct pipeline_msg_req *req;\n \tstruct pipeline_msg_rsp *rsp;\n \tint status;\n@@ -1687,6 +1688,8 @@ pipeline_table_rule_delete(const char *pipeline_name,\n \t\tmatch_check(match, p, table_id))\n \t\treturn -1;\n \n+\ttable = &p->table[table_id];\n+\n \tif (!pipeline_is_running(p)) {\n \t\tunion table_rule_match_low_level match_ll;\n \t\tint key_found;\n@@ -1701,6 +1704,9 @@ pipeline_table_rule_delete(const char *pipeline_name,\n \t\t\t\t&key_found,\n \t\t\t\tNULL);\n \n+\t\tif (status == 0)\n+\t\t\ttable_rule_delete(table, match);\n+\n \t\treturn status;\n \t}\n \n@@ -1721,6 +1727,8 @@ pipeline_table_rule_delete(const char *pipeline_name,\n \n \t/* Read response */\n \tstatus = rsp->status;\n+\tif (status == 0)\n+\t\ttable_rule_delete(table, match);\n \n \t/* Free response */\n \tpipeline_msg_free(rsp);\n", "prefixes": [ "05/12" ] }{ "id": 47739, "url": "