vtap0 device creation (bug)?
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?
Quoted 11 lines · Stephen Hemminger
When I create a virtio-user device with
rte_hotplugit 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.
Thanks,
Tiwei