Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/44581/?format=api
http://patches.dpdk.org/api/patches/44581/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1536675645-10105-14-git-send-email-reshma.pattan@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": "<1536675645-10105-14-git-send-email-reshma.pattan@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1536675645-10105-14-git-send-email-reshma.pattan@intel.com", "date": "2018-09-11T14:20:43", "name": "[v2,13/15] net/softnic: add flow destroy API", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "def1b5c4151e7eecd3bd9d0a198ba672217b605c", "submitter": { "id": 70, "url": "http://patches.dpdk.org/api/people/70/?format=api", "name": "Pattan, Reshma", "email": "reshma.pattan@intel.com" }, "delegate": { "id": 10018, "url": "http://patches.dpdk.org/api/users/10018/?format=api", "username": "cristian_dumitrescu", "first_name": "Cristian", "last_name": "Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1536675645-10105-14-git-send-email-reshma.pattan@intel.com/mbox/", "series": [ { "id": 1279, "url": "http://patches.dpdk.org/api/series/1279/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1279", "date": "2018-09-11T14:20:43", "name": null, "version": 2, "mbox": "http://patches.dpdk.org/series/1279/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/44581/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/44581/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 BF4125F30;\n\tTue, 11 Sep 2018 16:21:14 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 78DB05A6A\n\tfor <dev@dpdk.org>; Tue, 11 Sep 2018 16:21:03 +0200 (CEST)", "from fmsmga007.fm.intel.com ([10.253.24.52])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t11 Sep 2018 07:21:03 -0700", "from sivswdev02.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.46])\n\tby fmsmga007.fm.intel.com with ESMTP; 11 Sep 2018 07:21:02 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.53,360,1531810800\"; d=\"scan'208\";a=\"69156919\"", "From": "Reshma Pattan <reshma.pattan@intel.com>", "To": "dev@dpdk.org", "Cc": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>,\n\tReshma Pattan <reshma.pattan@intel.com>", "Date": "Tue, 11 Sep 2018 15:20:43 +0100", "Message-Id": "<1536675645-10105-14-git-send-email-reshma.pattan@intel.com>", "X-Mailer": "git-send-email 1.7.0.7", "In-Reply-To": "<1536251222-17275-1-git-send-email-reshma.pattan@intel.com>", "References": "<1536251222-17275-1-git-send-email-reshma.pattan@intel.com>", "Subject": "[dpdk-dev] [PATCH v2 13/15] net/softnic: add flow destroy API", "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": "pmd_flow_destroy() API is added to destroy the\ncreated flow.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Reshma Pattan <reshma.pattan@intel.com>\n---\n drivers/net/softnic/rte_eth_softnic_flow.c | 39 ++++++++++++++++++++++++++++++\n 1 file changed, 39 insertions(+)", "diff": "diff --git a/drivers/net/softnic/rte_eth_softnic_flow.c b/drivers/net/softnic/rte_eth_softnic_flow.c\nindex d3c94965b..90387b30b 100644\n--- a/drivers/net/softnic/rte_eth_softnic_flow.c\n+++ b/drivers/net/softnic/rte_eth_softnic_flow.c\n@@ -1616,7 +1616,46 @@ pmd_flow_create(struct rte_eth_dev *dev,\n \treturn flow;\n }\n \n+static int\n+pmd_flow_destroy(struct rte_eth_dev *dev,\n+\tstruct rte_flow *flow,\n+\tstruct rte_flow_error *error)\n+{\n+\tstruct pmd_internals *softnic = dev->data->dev_private;\n+\tstruct softnic_table *table;\n+\tint status;\n+\n+\t/* Check input parameters. */\n+\tif (flow == NULL)\n+\t\treturn rte_flow_error_set(error,\n+\t\t\tEINVAL,\n+\t\t\tRTE_FLOW_ERROR_TYPE_HANDLE,\n+\t\t\tNULL,\n+\t\t\t\"Null flow\");\n+\n+\ttable = &flow->pipeline->table[flow->table_id];\n+\n+\t/* Rule delete. */\n+\tstatus = softnic_pipeline_table_rule_delete(softnic,\n+\t\tflow->pipeline->name,\n+\t\tflow->table_id,\n+\t\t&flow->match);\n+\tif (status)\n+\t\treturn rte_flow_error_set(error,\n+\t\t\tEINVAL,\n+\t\t\tRTE_FLOW_ERROR_TYPE_UNSPECIFIED,\n+\t\t\tNULL,\n+\t\t\t\"Pipeline table rule delete failed\");\n+\n+\t/* Flow delete. */\n+\tTAILQ_REMOVE(&table->flows, flow, node);\n+\tfree(flow);\n+\n+\treturn 0;\n+}\n+\n const struct rte_flow_ops pmd_flow_ops = {\n \t.validate = pmd_flow_validate,\n \t.create = pmd_flow_create,\n+\t.destroy = pmd_flow_destroy,\n };\n", "prefixes": [ "v2", "13/15" ] }{ "id": 44581, "url": "