From c7b34a7f729c3578a5d96d8bf5bd37ea5c5c62a4 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Fri, 22 Mar 2019 12:33:48 +0800 Subject: [PATCH] Use enable_irq explicitly in ixgbe driver --- kernel/Cargo.lock | 2 +- kernel/src/drivers/net/ixgbe.rs | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/Cargo.lock b/kernel/Cargo.lock index 53679e5..9b43ed7 100644 --- a/kernel/Cargo.lock +++ b/kernel/Cargo.lock @@ -196,7 +196,7 @@ dependencies = [ [[package]] name = "isomorphic_drivers" version = "0.1.0" -source = "git+https://github.com/rcore-os/isomorphic_drivers#642e139b4c4a06a75d9530e9d60a33c514aea060" +source = "git+https://github.com/rcore-os/isomorphic_drivers#a564ac855887a823dac80529ec4138194583905d" dependencies = [ "bitflags 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)", "spin 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/kernel/src/drivers/net/ixgbe.rs b/kernel/src/drivers/net/ixgbe.rs index 17ba90a..8adfcb6 100644 --- a/kernel/src/drivers/net/ixgbe.rs +++ b/kernel/src/drivers/net/ixgbe.rs @@ -238,6 +238,8 @@ pub fn ixgbe_init( } } let ixgbe = ixgbe::IXGBEDriver::init(Provider::new(), header, size); + ixgbe.enable_irq(); + let ethernet_addr = EthernetAddress::from_bytes(&ixgbe.get_mac().as_bytes()); let net_driver = IXGBEDriver {