DPDK patches and discussions
 help / color / mirror / Atom feed
From: Declan Doherty <declan.doherty@intel.com>
To: "dev@dpdk.org" <dev@dpdk.org>
Cc: Jan Blunck <jblunck@infradead.org>
Subject: Re: [dpdk-dev] [PATCH 2/2] bond: use rte_eth_dev_socket_id()
Date: Wed, 28 Jun 2017 10:49:48 +0100	[thread overview]
Message-ID: <67a14fd3-c36c-0d7c-29d1-5eebc75bb977@intel.com> (raw)
In-Reply-To: <1493242208-19526-2-git-send-email-jblunck@infradead.org>

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 <wchiu@brocade.com>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> Signed-off-by: Jan Blunck <jblunck@infradead.org>
> ---
>   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 <declan.doherty@intel.com>

  reply	other threads:[~2017-06-28  9:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-26 21:30 [dpdk-dev] [PATCH 1/2] bond: avoid allocating mempool on socket LCORE_ID_ANY Jan Blunck
2017-04-26 21:30 ` [dpdk-dev] [PATCH 2/2] bond: use rte_eth_dev_socket_id() Jan Blunck
2017-06-28  9:49   ` Declan Doherty [this message]
2017-06-28  9:47 ` [dpdk-dev] [PATCH 1/2] bond: avoid allocating mempool on socket LCORE_ID_ANY Declan Doherty
2017-06-28 12:00   ` Jan Blunck
2017-06-30 14:34     ` [dpdk-dev] [PATCH v2 " Declan Doherty
2017-06-30 14:34       ` [dpdk-dev] [PATCH v2 2/2] bond: use rte_eth_dev_socket_id() Declan Doherty
2017-07-03 12:17       ` [dpdk-dev] [PATCH v2 1/2] bond: avoid allocating mempool on socket LCORE_ID_ANY Ferruh Yigit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=67a14fd3-c36c-0d7c-29d1-5eebc75bb977@intel.com \
    --to=declan.doherty@intel.com \
    --cc=dev@dpdk.org \
    --cc=jblunck@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).