From: Pascal Mazon Subject: Re: [PATCH 1/6] net/tap: use correct tap name Date: Tue, 31 Jan 2017 17:39:16 +0100 Message-ID: <78727e66-3588-79ab-6448-9858c19e2361@6wind.com> References: <1485855778-15496-1-git-send-email-pascal.mazon@6wind.com> <39a46c11-66c4-d8ed-a2bc-d9421cb4afd0@6wind.com> <9fa2c783-349c-e20c-0e57-0c24e67a4683@intel.com> <9C574760-33CF-4163-94D4-A0C919F4592C@intel.com> <74B7FC24-638D-4A48-A02D-C80B5B4E7E2B@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "Yigit, Ferruh" , "dev@dpdk.org" To: "Wiles, Keith" Return-path: Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by dpdk.org (Postfix) with ESMTP id 66D16B6D for ; Tue, 31 Jan 2017 17:41:01 +0100 (CET) Received: by mail-wm0-f43.google.com with SMTP id r141so86937642wmg.1 for ; Tue, 31 Jan 2017 08:41:01 -0800 (PST) In-Reply-To: <74B7FC24-638D-4A48-A02D-C80B5B4E7E2B@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" On 01/31/2017 05:06 PM, Wiles, Keith wrote:> > Looking at the changes to set the link up/down and the adding the two functions. I noticed in the stop/start routines I was set the link in DPDK and not adjusting the interface link. Should the stop/start routine also do the same thing? > Well, my patch is probably wrong. The best option would probably be to set dev->data->dev_link.link_status appropriately inside tap_link_set() only. I'm not sure it's compulsory to actually set the link UP in tap_dev_start() (respectively DOWN in tap_dev_stop()). If it is, however, it would be best done using tap_link_set() in those functions. -- Pascal Mazon www.6wind.com