]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bhyve: remove redundant code that adds "template" netdev name
authorLaine Stump <laine@redhat.com>
Tue, 15 Dec 2020 19:32:23 +0000 (14:32 -0500)
committerLaine Stump <laine@redhat.com>
Thu, 17 Dec 2020 02:31:51 +0000 (21:31 -0500)
commit08fe449848493a56a379c85492f49a2c14c5c494
tree2848ffdcc2c1d2ac32f2946985234e9941229fac
parent276d610c7632f32ac871893dff593412c7e64b97
bhyve: remove redundant code that adds "template" netdev name

The FreeBSD version of virNetDevTapCreate() now calls
virNetDevGenerateName(), and virNetDevGenerateName() understands that
a blank ifname should be replaced with a generated name based on a
device-type-specific template - so there is no longer any need for the
higher level functions to stuff a template name ("vnet%d") into
ifname.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/bhyve/bhyve_command.c