From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by dpdk.org (Postfix) with ESMTP id 304BE6835 for ; Thu, 30 Oct 2014 08:15:12 +0100 (CET) Received: by mail-pa0-f49.google.com with SMTP id lj1so4836246pab.8 for ; Thu, 30 Oct 2014 00:24:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=CQCItEBEiVpATrhaQFBunYmH3ehBRvQoHQwpRCGQhsU=; b=edKdNN9TyM2b7KGhu2dbjAaGknvoQZJOEjdGPo0DEcJhDXM3XC3L/YMBD89/SDda82 TFGEt1VbesZbBhUffHlUsrgEBRzFzh9/pAKGZsRA9FTJ9BW4b3gFgFepGzBlV9MVcbQe TnTFaXxI5ma5ReJvdHMSzquHV49XJcE/5pG5ZkqZs8Yve7lhqqt691DqGlHM+kf/ntOw wzzOttDWnUWzMPFyJ13wE/qgk+zg9fBKoP1i9s0LHK+g05cn/FpY/L1SlVH0sFTZtinn FWSK+hE+ouG7iqmPVgli1vBa/cdm6iK0NOjeFqYpNHliWpIzmvKVEoVQNYC5F6FKGuaw 1ySw== X-Gm-Message-State: ALoCoQn42yncoiWzGgqtoU1a3FCq79QkBS6k7KuON+kJZlKpDI+0HRq0PDec522b9L7ydU10f6V1 X-Received: by 10.70.2.226 with SMTP id 2mr15745884pdx.56.1414653846533; Thu, 30 Oct 2014 00:24:06 -0700 (PDT) Received: from [10.16.129.101] (napt.igel.co.jp. [219.106.231.132]) by mx.google.com with ESMTPSA id pl3sm6187604pbb.50.2014.10.30.00.24.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 00:24:06 -0700 (PDT) Message-ID: <5451E792.4060307@igel.co.jp> Date: Thu, 30 Oct 2014 16:24:03 +0900 From: Tetsuya Mukawa User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Bruce Richardson 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> In-Reply-To: <20141029145207.GA7084@bricha3-MOBL3> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: dev@dpdk.org, nakajima.yoshihiro@lab.ntt.co.jp, masutani.hitoshi@lab.ntt.co.jp Subject: Re: [dpdk-dev] [RFC PATCH 02/25] ethdev: Remove assumption that port will not be detached X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Oct 2014 07:15:12 -0000 (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