From: Thomas Monjalon <thomas.monjalon@6wind.com>
To: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Cc: dev@dpdk.org, "Loftus, Ciara" <ciara.loftus@intel.com>,
Tetsuya Mukawa <mukawa@igel.co.jp>,
"Tan, Jianfeng" <jianfeng.tan@intel.com>
Subject: Re: [PATCH] vhost: Fix retrieval of numa information in PMD
Date: Wed, 06 Apr 2016 18:12:07 +0200 [thread overview]
Message-ID: <4916622.WtR9CiyO17@xps13> (raw)
In-Reply-To: <20160406160946.GZ3080@yliu-dev.sh.intel.com>
2016-04-07 00:09, Yuanhan Liu:
> On Wed, Apr 06, 2016 at 09:37:53AM +0000, Loftus, Ciara wrote:
> > > On Wed, Apr 06, 2016 at 03:49:25PM +0900, Tetsuya Mukawa wrote:
> > > > Hi,
> > > >
> > > > I appreciate fixing it.
> > > > Just one worry is that state changed event may be occurred before new
> > > > device event.
> > > > The users should not call rte_eth_dev_socket_id() until new device event
> > > > comes, even if they catch queue state events.
> > > > Otherwise, they will get wrong socket id to call
> > > > rte_eth_rx/tx_queue_setup().
> > >
> > > There is no way to guarantee that the socket id stuff would work
> > > perfectly in vhost, right? I mean, it's likely that virtio device
> > > would allocate memory from 2 or more sockets.
> > >
> > > So, it doesn't matter too much whether it's set perfectly right
> > > or not. Instead, we should assign it with a saner value instead
> > > of a obvious wrong one when new_device() is not invoked yet. So,
> > > I'd suggest to make an assignment first based on vhost_dev (or
> > > whatever) struct, and then make it "right" at new_device()
> > > callback?
> >
> > Thanks for the feedback.
> > At the moment with this patch numa_node is initially set to rte_socket_id() during pmd init and then updated to the correct value during new_device.
> > Are you suggesting we set it again in between these two steps ("based on vhost_dev")? If so where do you think would be a good place?
>
> Oh, I was not aware of that. Then I think we are fine here.
Please Yuanhan, could you be more explicit?
next prev parent reply other threads:[~2016-04-06 16:13 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-05 16:09 [PATCH] vhost: Fix retrieval of numa information in PMD Ciara Loftus
2016-04-06 5:03 ` Yuanhan Liu
2016-04-06 16:45 ` Thomas Monjalon
2016-04-06 5:32 ` Tan, Jianfeng
2016-04-06 5:44 ` Yuanhan Liu
2016-04-06 6:05 ` Tan, Jianfeng
2016-04-06 6:17 ` Yuanhan Liu
2016-04-06 6:32 ` Tan, Jianfeng
2016-04-06 6:49 ` Tetsuya Mukawa
2016-04-06 7:17 ` Yuanhan Liu
2016-04-06 7:28 ` Tetsuya Mukawa
2016-04-06 9:37 ` Loftus, Ciara
2016-04-06 16:09 ` Yuanhan Liu
2016-04-06 16:12 ` Thomas Monjalon [this message]
2016-04-06 16:43 ` Yuanhan Liu
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=4916622.WtR9CiyO17@xps13 \
--to=thomas.monjalon@6wind.com \
--cc=ciara.loftus@intel.com \
--cc=dev@dpdk.org \
--cc=jianfeng.tan@intel.com \
--cc=mukawa@igel.co.jp \
--cc=yuanhan.liu@linux.intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.