[dpdk-dev] [PATCH] vhost: add interface name to virtio-net struct

Stephen Hemminger stephen at networkplumber.org
Thu Dec 18 17:20:26 CET 2014


On Thu, 18 Dec 2014 14:55:23 +0000
ciara.loftus at intel.com wrote:

> diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h
> index 00b1328..aebb4b5 100644
> --- a/lib/librte_vhost/rte_virtio_net.h
> +++ b/lib/librte_vhost/rte_virtio_net.h
> @@ -96,6 +96,7 @@ struct virtio_net {
>  	uint64_t		features;	/**< Negotiated feature set. */
>  	uint64_t		device_fh;	/**< device identifier. */
>  	uint32_t		flags;		/**< Device flags. Only used to check if device is running on data core. */
> +	char			ifname[32];	/** Name of the tap device **/

Linux and BSD the maximum network device name size is 16



More information about the dev mailing list