diff --git a/src/devices/virtio_net.rs b/src/devices/virtio_net.rs index 368a61b..3500c73 100644 --- a/src/devices/virtio_net.rs +++ b/src/devices/virtio_net.rs @@ -123,8 +123,8 @@ struct VirtioNetDevice { rx: VirtQueue, tx: VirtQueue, rx_bytes: usize, - rx_frame: [u8; MAX_BUFFER_SIZE], - tx_frame: [u8; MAX_BUFFER_SIZE], + rx_frame: Vec, + tx_frame: Vec, } impl VirtioNetDevice { @@ -136,8 +136,8 @@ impl VirtioNetDevice { poll, tap_event_enabled: false, rx_bytes: 0, - rx_frame: [0; MAX_BUFFER_SIZE], - tx_frame: [0; MAX_BUFFER_SIZE], + rx_frame: vec![0; MAX_BUFFER_SIZE], + tx_frame: vec![0; MAX_BUFFER_SIZE], } }