From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: David Marchand <david.marchand@redhat.com>
Cc: dev@dpdk.org, tiwei.bie@intel.com, zhihong.wang@intel.com,
jfreimann@redhat.com, stable@dpdk.org
Subject: Re: [dpdk-dev] [PATCH] net/virtio: allocate vrings on device NUMA node
Date: Tue, 27 Nov 2018 15:27:47 +0100 [thread overview]
Message-ID: <6e99a49c-7213-7d7a-308e-e32fe5106bee@redhat.com> (raw)
In-Reply-To: <CAJFAV8y=cpLH4YQo1p1hS-JM5WVarSbD4T95T0MbgnXHNbB9Vw@mail.gmail.com>
On 11/27/18 2:29 PM, David Marchand wrote:
> On Tue, Nov 27, 2018 at 11:54 AM Maxime Coquelin
> <maxime.coquelin@redhat.com <mailto:maxime.coquelin@redhat.com>> wrote:
>
> When a guest is spanned on multiple NUMA nodes and
> multiple Virtio devices are spanned onto these nodes,
> we expect that their ring memory is allocated in the
> right memory node.
>
> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com
> <mailto:maxime.coquelin@redhat.com>>
> ---
> drivers/net/virtio/virtio_ethdev.c | 12 +++++++-----
> 1 file changed, 7 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/virtio/virtio_ethdev.c
> b/drivers/net/virtio/virtio_ethdev.c
> index 2ba66d291..d99571d93 100644
> --- a/drivers/net/virtio/virtio_ethdev.c
> +++ b/drivers/net/virtio/virtio_ethdev.c
> @@ -335,8 +335,10 @@ virtio_init_queue(struct rte_eth_dev *dev,
> uint16_t vtpci_queue_idx)
> void *sw_ring = NULL;
> int queue_type = virtio_get_queue_type(hw, vtpci_queue_idx);
> int ret;
> + int numa_node = dev->device->numa_node;
>
> - PMD_INIT_LOG(DEBUG, "setting up queue: %u", vtpci_queue_idx);
> + PMD_INIT_LOG(INFO, "setting up queue: %u on NUMA node %u",
>
>
> %d ?
Right, thanks for spotting it.
Maxime
next prev parent reply other threads:[~2018-11-27 14:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-27 10:54 Maxime Coquelin
2018-11-27 13:29 ` David Marchand
2018-11-27 14:27 ` Maxime Coquelin [this message]
2018-12-11 18:31 ` Maxime Coquelin
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=6e99a49c-7213-7d7a-308e-e32fe5106bee@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=david.marchand@redhat.com \
--cc=dev@dpdk.org \
--cc=jfreimann@redhat.com \
--cc=stable@dpdk.org \
--cc=tiwei.bie@intel.com \
--cc=zhihong.wang@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 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).