Skip to content

Commit

Permalink
feat: add RING_EVENT_IDX feature in net dev
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Nov 12, 2023
1 parent a3da9bb commit 8b38f24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/device/net/dev_raw.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::{Config, EthernetAddress, Features, VirtioNetHdr};
use super::{MIN_BUFFER_LEN, NET_HDR_SIZE, QUEUE_RECEIVE, QUEUE_TRANSMIT};
use super::{MIN_BUFFER_LEN, NET_HDR_SIZE, QUEUE_RECEIVE, QUEUE_TRANSMIT, SUPPORTED_FEATURES};
use crate::hal::Hal;
use crate::queue::VirtQueue;
use crate::transport::Transport;
Expand All @@ -26,7 +26,7 @@ pub struct VirtIONetRaw<H: Hal, T: Transport, const QUEUE_SIZE: usize> {
impl<H: Hal, T: Transport, const QUEUE_SIZE: usize> VirtIONetRaw<H, T, QUEUE_SIZE> {
/// Create a new VirtIO-Net driver.
pub fn new(mut transport: T) -> Result<Self> {
let negotiated_features = transport.begin_init(Features::MAC | Features::STATUS);
let negotiated_features = transport.begin_init(SUPPORTED_FEATURES);
info!("negotiated_features {:?}", negotiated_features);
// read configuration space
let config = transport.config_space::<Config>()?;
Expand Down

0 comments on commit 8b38f24

Please sign in to comment.