From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tetsuya Mukawa Subject: Re: [RFC PATCH 02/25] ethdev: Remove assumption that port will not be detached Date: Thu, 30 Oct 2014 16:24:03 +0900 Message-ID: <5451E792.4060307@igel.co.jp> References: <1414572576-21371-1-git-send-email-mukawa@igel.co.jp> <1414572576-21371-3-git-send-email-mukawa@igel.co.jp> <20141029145207.GA7084@bricha3-MOBL3> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: dev-VfR2kkLFssw@public.gmane.org, nakajima.yoshihiro-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org, masutani.hitoshi-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org To: Bruce Richardson Return-path: In-Reply-To: <20141029145207.GA7084@bricha3-MOBL3> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" (2014/10/30 0:14), Bruce Richardson wrote: > Given that apps may regularly use eth_dev_count, might it not be > worthwhile to retain the nb_ports local variable to make this API call > just be a variable read. The other APIs to enable/disable individual > ports could easily just inc/dec this var as they do so. > > /Bruce=20 I agree with your suggestion. I will change like above. Thanks, Tetsuya