On 3/12/19 8:13 AM, Tiwei Bie wrote:
The multiqueue support in virtio-user with vhost kernel backend
is broken when tap name isn't specified by users explicitly,
because the tap name returned by ioctl(TUNSETIFF) isn't saved
properly, and multiple tap interfaces will be created in this
case. Fix this by saving the dynamically allocated tap name
first before reusing the ifr structure. Besides, also make it
possible to support the format string in tap name (e.g. foo%d)
specified by users explicitly.

Fixes: 791b43e08842 ("net/virtio-user: specify MAC of the tap")
Cc: sta...@dpdk.org

Reported-by: Stephen Hemminger <step...@networkplumber.org>
Signed-off-by: Tiwei Bie <tiwei....@intel.com>
---
  drivers/net/virtio/virtio_user/vhost_kernel_tap.c | 12 ++++++++++--
  1 file changed, 10 insertions(+), 2 deletions(-)


Applied to dpdk-next-virtio/master branch.

Thanks,
Maxime

Reply via email to