diff options
Diffstat (limited to 'src/dev/net/i8254xGBe.cc')
-rw-r--r-- | src/dev/net/i8254xGBe.cc | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/dev/net/i8254xGBe.cc b/src/dev/net/i8254xGBe.cc index 2d55603f1..9d83519df 100644 --- a/src/dev/net/i8254xGBe.cc +++ b/src/dev/net/i8254xGBe.cc @@ -139,16 +139,12 @@ IGbE::init() PciDevice::init(); } -EtherInt* -IGbE::getEthPort(const std::string &if_name, int idx) +Port & +IGbE::getPort(const std::string &if_name, PortID idx) { - - if (if_name == "interface") { - if (etherInt->getPeer()) - panic("Port already connected to\n"); - return etherInt; - } - return NULL; + if (if_name == "interface") + return *etherInt; + return EtherDevice::getPort(if_name, idx); } Tick |