mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: config: Switch NetConfig to use PciDeviceCommonConfig
Switch NetConfig over to using the newly extracted struct members as used by all PCI based devices. The use of #[serde(flatten)] means that this change has no impact on the JSON format that the data is stored as. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -122,7 +122,7 @@ mod fds_helper {
|
||||
|
||||
impl ConfigWithFDs for NetConfig {
|
||||
fn id(&self) -> Option<&str> {
|
||||
self.id.as_deref()
|
||||
self.pci_common.id.as_deref()
|
||||
}
|
||||
|
||||
fn fds_from_http_body(&self) -> Option<&[RawFd]> {
|
||||
|
||||
Reference in New Issue
Block a user