Skip to content

Commit

Permalink
feat: update virtio-drivers version
Browse files Browse the repository at this point in the history
  • Loading branch information
hky1999 committed Nov 16, 2023
1 parent 7563266 commit 07b6d52
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 26 deletions.
42 changes: 21 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions crates/driver_pci/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ repository = "https://github.com/rcore-os/arceos/tree/main/crates/driver_pci"
documentation = "https://rcore-os.github.io/arceos/driver_pci/index.html"

[dependencies]
# virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers.git", rev = "409ee72" }
virtio-drivers = { git = "https://github.com/hky1999/virtio-drivers.git", rev = "80d1652" }
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers.git", rev = "4b60f5d" }
3 changes: 1 addition & 2 deletions crates/driver_virtio/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ driver_common = { path = "../driver_common" }
driver_block = { path = "../driver_block", optional = true }
driver_net = { path = "../driver_net", optional = true }
driver_display = { path = "../driver_display", optional = true}
# virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers.git", rev = "409ee72" }
virtio-drivers = { git = "https://github.com/hky1999/virtio-drivers.git", rev = "80d1652" }
virtio-drivers = { git = "https://github.com/rcore-os/virtio-drivers.git", rev = "4b60f5d" }
2 changes: 1 addition & 1 deletion crates/driver_virtio/src/net.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl<H: Hal, T: Transport, const QS: usize> NetDriverOps for VirtIoNetDev<H, T,

#[inline]
fn can_receive(&self) -> bool {
self.inner.can_recv()
self.inner.poll_receive().is_some()
}

#[inline]
Expand Down

0 comments on commit 07b6d52

Please sign in to comment.