DPDK usage discussions
 help / color / mirror / Atom feed
From: Dirk-Holger Lenz <dirk.lenz@ng4t.com>
To: "users@dpdk.org" <users@dpdk.org>
Subject: Re: [dpdk-users] virtio doesn't work on some virtual machines
Date: Mon, 4 Sep 2017 10:36:26 +0200	[thread overview]
Message-ID: <c7db44e6-818f-7688-7e83-406bb7300850@ng4t.com> (raw)
In-Reply-To: <c578db05-2bcf-7193-9ba4-cc5332c74398@ng4t.com>

After we fixed a second problem with virtio we didn't see the described
behaviour anymore. We will tell you when it occurs again.

To the second problem:
Our application dynamically opens and closes ethernet ports on request.
This means it calls rte_eth_dev_configure(), rte_eth_tx_queue_setup(),
rte_eth_rx_queue_setup(), rte_eth_dev_start and (later) rte_eth_dev_stop()
in a sequence when it opens an ethernet port and closes it again.
For virtio the rte_eth_rx_queue_setup() doesn't take a new buffer pool
when it already has one. Beside this the buffers taken from the rx side
are also not freed.
Our work around it to call rte_eth_dev_close() and eth_virtio_dev_init()
for the case that the port works on virtio.

Best regards
Dirk

On 08/07/2017 04:07 PM, Dirk-Holger Lenz wrote:
> with dpdk 17.08rc4 using shared libriaries and primary/secondary process
> virtio doesn't work on some of our virtual machines.
> The reason for this seems to be the different sequence the mempool 
> drivers
> register to dpdk.
> While on the primary process the mempool drivers register in this 
> sequence:
> ring_mp_mc -> 0
> ring_sp_sc ->1
> ring_mp_sc -> 2
> ring_sp_mc -> 3
> stack -> 4
> on some of our virtual machines they register in the same sequence while
> other machines register in this sequence:
> stack -> 0
> ring_mp_mc -> 1
> ring_sp_sc ->2
> ring_mp_sc -> 3
> ring_sp_mc -> 4
> This leads to the effect that the pool which is created by the primary 
> process
> with mempool index 0 is used in the secondary process with a different 
> kind
> of drivers and different driver specific functions which makes in our 
> case the
> system block at the symlock that never goes to zero.
>
>
>

      reply	other threads:[~2017-09-04  8:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-07 14:07 Dirk-Holger Lenz
2017-09-04  8:36 ` Dirk-Holger Lenz [this message]

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=c7db44e6-818f-7688-7e83-406bb7300850@ng4t.com \
    --to=dirk.lenz@ng4t.com \
    --cc=users@dpdk.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).