From patchwork Mon Feb 6 19:40:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wiles, Keith" X-Patchwork-Id: 20204 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id C5A6CD4E0; Mon, 6 Feb 2017 20:41:21 +0100 (CET) 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) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2017 11:40:43 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos; i="5.33,342,1477983600"; d="scan'208"; a="1122886389" Received: from fshahid-mobl2.amr.corp.intel.com ([10.254.19.238]) by fmsmga002.fm.intel.com with ESMTP; 06 Feb 2017 11:40:43 -0800 From: Keith Wiles To: dev@dpdk.org Cc: pascal.mazon@6wind.com, ferruh.yigit@intel.com Date: Mon, 6 Feb 2017 13:40:37 -0600 Message-Id: <20170206194038.9246-6-keith.wiles@intel.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170206194038.9246-1-keith.wiles@intel.com> References: <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> Subject: [dpdk-dev] [PATCH v3 6/7] net/tap: link set down must be done before close X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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