DPDK-dev Archive on lore.kernel.org
 help / color / Atom feed
From: Tiwei Bie <tiwei.bie@intel.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: Maxime Coquelin <maxime.coquelin@redhat.com>,
	Zhihong Wang <zhihong.wang@intel.com>,
Subject: Re: [dpdk-dev] vtap0 device creation (bug)?
Date: Mon, 11 Nov 2019 16:15:44 +0800
Message-ID: <20191111081543.GA12998@___> (raw)
In-Reply-To: <20191108154407.0bd8734d@hermes.lan>

On Fri, Nov 08, 2019 at 03:44:07PM -0800, Stephen Hemminger wrote:
> When I create a virtio-user device with rte_hotplug it creates a kernel device (ie vtap0).
> This is normal an the device has ifindex N.
> But later when device is configured an started the original vtap0 device is deleted
> and a new one is created (with ifindex N+1).  This seems like a bug, if nothing
> else it unnecessary overhead and link flapping for routing daemons.
> Noticed only while tracking down a bug where after vtap was created the
> address was being set, but then disappearing.
> Is this intentional? Is it documented?

Thanks for catching this.
I think it's caused by the fact that tapfds will be closed
each time when the queue pairs are disabled [1]. We may need
a way to keep tapfds open to fix it.

[1] https://github.com/DPDK/dpdk/blob/6bbc5a923625/drivers/net/virtio/virtio_user/vhost_kernel.c#L333-L338


      reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-08 23:44 Stephen Hemminger
2019-11-11  8:15 ` Tiwei Bie [this message]

Reply instructions:

You may reply publically 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:

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

  git send-email \
    --in-reply-to=20191111081543.GA12998@___ \
    --to=tiwei.bie@intel.com \
    --cc=dev@dpdk.org \
    --cc=maxime.coquelin@redhat.com \
    --cc=stephen@networkplumber.org \
    --cc=zhihong.wang@intel.com \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

DPDK-dev Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/dpdk-dev/0 dpdk-dev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 dpdk-dev dpdk-dev/ https://lore.kernel.org/dpdk-dev \
	public-inbox-index dpdk-dev

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git