]> xenbits.xensource.com Git - xen.git/commit
tools/libs/light: Add vlan field to libxl_device_nic
authorLeigh Brown <leigh@solinno.co.uk>
Wed, 8 May 2024 21:38:20 +0000 (22:38 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 15 May 2024 18:59:52 +0000 (19:59 +0100)
commit3bc14e4fa4b9832888710759a7dbe5f0d239f33b
treed009cedef500c7c1ce4b974886bb995383960bea
parente27fc7d15eab79e604e8b8728778594accc23cf1
tools/libs/light: Add vlan field to libxl_device_nic

Add `vlan' string field to libxl_device_nic, to allow a VLAN
configuration to be specified for the VIF when adding it to the
bridge device.

Update libxl_nic.c to read and write the vlan field from the
xenstore.

This provides the capability for supported operating systems (e.g.
Linux) to perform VLAN filtering on bridge ports.  The Xen
hotplug scripts need to be updated to read this information from
the xenstore and perform the required configuration.

Signed-off-by: Leigh Brown <leigh@solinno.co.uk>
Reviewed-by: Jason Andryuk <jandryuk@gmail.com>
tools/libs/light/libxl_nic.c
tools/libs/light/libxl_types.idl