From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 462D02BE1 for ; Wed, 28 Jun 2017 11:50:38 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jun 2017 02:50:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,274,1496127600"; d="scan'208";a="1187899463" Received: from dwdohert-dpdk.ir.intel.com ([163.33.210.152]) by fmsmga002.fm.intel.com with ESMTP; 28 Jun 2017 02:50:36 -0700 To: "dev@dpdk.org" References: <1493242208-19526-1-git-send-email-jblunck@infradead.org> <1493242208-19526-2-git-send-email-jblunck@infradead.org> Cc: Jan Blunck From: Declan Doherty Message-ID: <67a14fd3-c36c-0d7c-29d1-5eebc75bb977@intel.com> Date: Wed, 28 Jun 2017 10:49:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.0 MIME-Version: 1.0 In-Reply-To: <1493242208-19526-2-git-send-email-jblunck@infradead.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 2/2] bond: use rte_eth_dev_socket_id() 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: , X-List-Received-Date: Wed, 28 Jun 2017 09:50:38 -0000 On 26/04/17 22:30, Jan Blunck wrote: > The bonded device does not have to be a PCI device. Use the rte_ethdev > functions instead. > > Signed-off-by: Wen Chiu > Signed-off-by: Stephen Hemminger > Signed-off-by: Jan Blunck > --- > drivers/net/bonding/rte_eth_bond_8023ad.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/bonding/rte_eth_bond_8023ad.c b/drivers/net/bonding/rte_eth_bond_8023ad.c > index b8df536..f84553c 100644 > --- a/drivers/net/bonding/rte_eth_bond_8023ad.c > +++ b/drivers/net/bonding/rte_eth_bond_8023ad.c > @@ -886,7 +886,7 @@ bond_mode_8023ad_activate_slave(struct rte_eth_dev *bond_dev, uint8_t slave_id) > > RTE_ASSERT(port->rx_ring == NULL); > RTE_ASSERT(port->tx_ring == NULL); > - socket_id = rte_eth_devices[slave_id].data->numa_node; > + socket_id = rte_eth_dev_socket_id(slave_id); > if (socket_id == (uint8_t)LCORE_ID_ANY) > socket_id = 0; > > Acked-by: Declan Doherty