virtio: fix the type of argument in virtio_show() 96/33796/3
authorMohsin Kazmi <sykazmi@cisco.com>
Wed, 22 Sep 2021 18:56:05 +0000 (18:56 +0000)
committerMohsin Kazmi <sykazmi@cisco.com>
Wed, 22 Sep 2021 20:19:45 +0000 (20:19 +0000)
commite4efbe73a31062f18d5963caedb1718a3d2c34ea
treee8c1872c6a2737fd90635d0e78c909a46b3871f4
parent0455431a00cb32c1f312437c71afa9290fc7e074
virtio: fix the type of argument in virtio_show()

Type: fix

virtio have three different interfaces (tap, tun and native virtio).
virtio_show() is used by CLI commands to show information about these
interfaces. It uses interface type to print interface specific information.
virtio_show() should use proper type for virtio interfaces (TAP, TUN, VIRTIO).

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