Implement send for ixgbe

toolchain_update
Jiajie Chen 6 years ago
parent b0c9087f0f
commit a1ae2af269

@ -80,8 +80,9 @@ unsafe fn enable(loc: Location) -> Option<u32> {
let orig_ctrl = am.read32(ops, loc, cap_ptr + PCI_MSI_CTRL_CAP);
am.write32(ops, loc, cap_ptr + PCI_MSI_CTRL_CAP, orig_ctrl | 0x10000);
debug!(
"MSI control {:#b}, enabling MSI interrupts",
orig_ctrl >> 16
"MSI control {:#b}, enabling MSI interrupt {}",
orig_ctrl >> 16,
irq
);
msi_found = true;
break;

@ -101,6 +101,11 @@ impl Driver for IXGBEInterface {
}
}
fn send(&self, data: &[u8]) -> Option<usize> {
self.driver.inner.send(&data);
Some(data.len())
}
fn get_arp(&self, ip: IpAddress) -> Option<EthernetAddress> {
let iface = self.iface.lock();
let cache = iface.neighbor_cache();

Loading…
Cancel
Save