virtio: remove admin-up flag during interface creation 33/34933/2
authorMohsin Kazmi <sykazmi@cisco.com>
Tue, 18 Jan 2022 12:53:57 +0000 (13:53 +0100)
committerDamjan Marion <dmarion@me.com>
Tue, 18 Jan 2022 14:29:06 +0000 (14:29 +0000)
commit5bb4cd1bea08e42d308136222963ff31bc521166
tree0fa56b0083561d0f0d77242bb2d1fbd68be897f7
parent646c6e09251f80b9ec8399df0090119d3d09802a
virtio: remove admin-up flag during interface creation

Type: fix

During the interface creation time, (by default) admin-up
flag is locally set for tap and virtio interfaces.
While, in VPP the state of these interfaces are still
admin-down. User needs to explicitly call
'set interface state <interface-name> up' to admin-up the
newly created tap or virtio interface(s) in VPP. So, this
behavior is inconsistent.

This patch fixes the issue to have consistent behavior
for given interface between local and global administration
state.

Change-Id: Ifd8904a09fbdbe7b386874ac3231dc0527064518
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
src/vnet/devices/tap/tap.c
src/vnet/devices/virtio/pci.c