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

Vincent JARDIN vincent.jardin at 6wind.com
Thu Dec 18 17:26:12 CET 2014


>> +	char			ifname[32];	/** Name of the tap device **/
>
> Linux and BSD the maximum network device name size is 16
>
In any case, please, use IF_NAMESIZE or IFNAMSIZ

see:
http://fxr.watson.org/fxr/ident?v=FREEBSD51;im=bigexcerpts;i=IF_NAMESIZE




More information about the dev mailing list