vhost: add interface name for virtio
authorCiara Loftus <ciara.loftus@intel.com>
Thu, 18 Dec 2014 18:07:07 +0000 (18:07 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 18 Dec 2014 21:52:38 +0000 (22:52 +0100)
commitf5a31522f02ae8b70d694409bb37387831ace43f
treee09475edc893e36086f849d3a01d4fb7ab8ae7a8
parenta8aac461cbdb1e1ad4ef783d559c0d34f326e93d
vhost: add interface name for virtio

This patch fixes the issue whereby when using userspace vhost ports
in the context of vSwitching, the name provided to the hypervisor/QEMU
of the vhost tap device needs to be exposed in the library, in order
for the vSwitch to be able to direct packets to the correct device.
This patch introduces an 'ifname' member to the virtio-net structure
which is populated with the tap device name when QEMU is brought up
with a vhost device.

Signed-off-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Anthony Fee <anthonyx.fee@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_vhost/rte_virtio_net.h
lib/librte_vhost/virtio-net.c