From: Keith Wiles Subject: [PATCH v3 6/7] net/tap: link set down must be done before close Date: Mon, 6 Feb 2017 13:40:37 -0600 Message-ID: <20170206194038.9246-6-keith.wiles@intel.com> References: <20170206194038.9246-1-keith.wiles@intel.com> Cc: pascal.mazon@6wind.com, ferruh.yigit@intel.com To: dev@dpdk.org Return-path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 6C69614EC for ; Mon, 6 Feb 2017 20:40:44 +0100 (CET) In-Reply-To: <20170206194038.9246-1-keith.wiles@intel.com> In-Reply-To: <20170202223330.39240-1-keith.wiles@intel.com> References: <20170202223330.39240-1-keith.wiles@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fixes: ee418a25b0d3 ("net/tap: implement link up and down callbacks") Signed-off-by: Keith Wiles --- drivers/net/tap/rte_eth_tap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/tap/rte_eth_tap.c b/drivers/net/tap/rte_eth_tap.c index 65e4bab..966e91a 100644 --- a/drivers/net/tap/rte_eth_tap.c +++ b/drivers/net/tap/rte_eth_tap.c @@ -353,10 +353,11 @@ tap_dev_stop(struct rte_eth_dev *dev) int i; struct pmd_internals *internals = dev->data->dev_private; + tap_link_set_down(dev); + for (i = 0; i < internals->nb_queues; i++) if (internals->rxq[i].fd != -1) close(internals->rxq[i].fd); - tap_link_set_down(dev); } static int -- 2.8.0.GIT