cloud-hypervisor/net_util/src
Markus Sütter 0e9513f2b7 vmm: Allow IP configuration on named TAP interfaces
This commit changes existing behavior of named TAP interfaces.
When booting a VM with configuration for a named TAP interface,
cloud-hypervisor will create the interface and apply a given
IP configuration to that interface. If the named interface
already exists on the system, the configuration is NOT overwritten.

Setting the ip and netmask fields in a tap interface configuration
for a named tap interface now works by handing this configuration
to the virtio_devices::Net object when it is created with a name.

This commit also touches net_util to make sure that the ip configuration
of existing TAP interfaces is not modified with ip or netmask handed to
open_tap.

Signed-off-by: Markus Sütter <markus.suetter@secunet.com>
2023-12-05 08:59:04 -08:00
..
ctrl_queue.rs build: Bump virtio-bindings from 0.1.0 to 0.2.0 2023-02-23 00:59:32 +00:00
lib.rs build: Bump virtio-bindings from 0.1.0 to 0.2.0 2023-02-23 00:59:32 +00:00
mac.rs misc: Automatically fix cargo clippy issues added in 1.65 (stable) 2022-12-14 14:27:19 +00:00
open_tap.rs vmm: Allow IP configuration on named TAP interfaces 2023-12-05 08:59:04 -08:00
queue_pair.rs build: Bump vm-memory and its consumers 2023-09-07 11:34:51 -07:00
tap.rs misc: Fix various spelling errors using typos 2023-09-09 10:46:21 +01:00