Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1409/?format=api
https://patches.dpdk.org/api/patches/1409/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416530816-2159-3-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": "<1416530816-2159-3-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1416530816-2159-3-git-send-email-jingjing.wu@intel.com", "date": "2014-11-21T00:46:36", "name": "[dpdk-dev,v6,02/22] i40e: tear down flow director", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "41454daf3c56e0b796d476f2452ba3f755b4c70e", "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/1416530816-2159-3-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1409/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1409/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 0DB3C7F7C;\n\tFri, 21 Nov 2014 01:36:37 +0100 (CET)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id 52F187F74\n\tfor <dev@dpdk.org>; Fri, 21 Nov 2014 01:36:35 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n\tby orsmga101.jf.intel.com with ESMTP; 20 Nov 2014 16:47:07 -0800", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga002.jf.intel.com with ESMTP; 20 Nov 2014 16:47:06 -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 sAL0l4aT003126;\n\tFri, 21 Nov 2014 08:47:04 +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 sAL0l2m3002207; Fri, 21 Nov 2014 08:47:04 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id sAL0l2Ut002203; \n\tFri, 21 Nov 2014 08:47:02 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.07,426,1413270000\"; d=\"scan'208\";a=\"640843366\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 21 Nov 2014 08:46:36 +0800", "Message-Id": "<1416530816-2159-3-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1416530816-2159-1-git-send-email-jingjing.wu@intel.com>", "References": "<1414654006-7472-1-git-send-email-jingjing.wu@intel.com>\n\t<1416530816-2159-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH v6 02/22] i40e: tear down flow director", "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": "release fortville resources on flow director, includes\n - queue 0 pair release\n - release vsi\n\nSigned-off-by: jingjing.wu <jingjing.wu@intel.com>\n---\n lib/librte_pmd_i40e/i40e_ethdev.c | 7 +++++++\n lib/librte_pmd_i40e/i40e_ethdev.h | 1 +\n lib/librte_pmd_i40e/i40e_fdir.c | 21 +++++++++++++++++++++\n 3 files changed, 29 insertions(+)", "diff": "diff --git a/lib/librte_pmd_i40e/i40e_ethdev.c b/lib/librte_pmd_i40e/i40e_ethdev.c\nindex 46115c7..ac68540 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.c\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.c\n@@ -521,6 +521,7 @@ eth_i40e_dev_init(__rte_unused struct eth_driver *eth_drv,\n err_mac_alloc:\n \ti40e_vsi_release(pf->main_vsi);\n err_setup_pf_switch:\n+\ti40e_fdir_teardown(pf);\n err_get_mac_addr:\n err_configure_lan_hmc:\n \t(void)i40e_shutdown_lan_hmc(hw);\n@@ -877,11 +878,16 @@ i40e_dev_stop(struct rte_eth_dev *dev)\n \t\ti40e_vsi_queues_unbind_intr(pf->vmdq[i].vsi);\n \t}\n \n+\tif (pf->flags & I40E_FLAG_FDIR) {\n+\t\ti40e_vsi_queues_bind_intr(pf->fdir.fdir_vsi);\n+\t\ti40e_vsi_enable_queues_intr(pf->fdir.fdir_vsi);\n+\t}\n \t/* Clear all queues and release memory */\n \ti40e_dev_clear_queues(dev);\n \n \t/* Set link down */\n \ti40e_dev_set_link_down(dev);\n+\n }\n \n static void\n@@ -903,6 +909,7 @@ i40e_dev_close(struct rte_eth_dev *dev)\n \ti40e_shutdown_lan_hmc(hw);\n \n \t/* release all the existing VSIs and VEBs */\n+\ti40e_fdir_teardown(pf);\n \ti40e_vsi_release(pf->main_vsi);\n \n \t/* shutdown the adminq */\ndiff --git a/lib/librte_pmd_i40e/i40e_ethdev.h b/lib/librte_pmd_i40e/i40e_ethdev.h\nindex e9c714c..7ad6501 100644\n--- a/lib/librte_pmd_i40e/i40e_ethdev.h\n+++ b/lib/librte_pmd_i40e/i40e_ethdev.h\n@@ -401,6 +401,7 @@ const struct rte_memzone *i40e_memzone_reserve(const char *name,\n \t\t\t\t\tuint32_t len,\n \t\t\t\t\tint socket_id);\n int i40e_fdir_configure(struct rte_eth_dev *dev);\n+void i40e_fdir_teardown(struct i40e_pf *pf);\n \n /* I40E_DEV_PRIVATE_TO */\n #define I40E_DEV_PRIVATE_TO_PF(adapter) \\\ndiff --git a/lib/librte_pmd_i40e/i40e_fdir.c b/lib/librte_pmd_i40e/i40e_fdir.c\nindex 7708887..9b678ce 100644\n--- a/lib/librte_pmd_i40e/i40e_fdir.c\n+++ b/lib/librte_pmd_i40e/i40e_fdir.c\n@@ -225,6 +225,27 @@ fail_setup_tx:\n \treturn err;\n }\n \n+/*\n+ * i40e_fdir_teardown - release the Flow Director resources\n+ * @pf: board private structure\n+ */\n+void\n+i40e_fdir_teardown(struct i40e_pf *pf)\n+{\n+\tstruct i40e_hw *hw = I40E_PF_TO_HW(pf);\n+\tstruct i40e_vsi *vsi;\n+\n+\tvsi = pf->fdir.fdir_vsi;\n+\ti40e_switch_tx_queue(hw, vsi->base_queue, FALSE);\n+\ti40e_switch_rx_queue(hw, vsi->base_queue, FALSE);\n+\ti40e_dev_rx_queue_release(pf->fdir.rxq);\n+\tpf->fdir.rxq = NULL;\n+\ti40e_dev_tx_queue_release(pf->fdir.txq);\n+\tpf->fdir.txq = NULL;\n+\ti40e_vsi_release(vsi);\n+\tpf->fdir.fdir_vsi = NULL;\n+}\n+\n /* check whether the flow director table in empty */\n static inline int\n i40e_fdir_empty(struct i40e_hw *hw)\n", "prefixes": [ "dpdk-dev", "v6", "02/22" ] }{ "id": 1409, "url": "