base,dev,python: Rename Net namespace as networking

As part of recent decisions regarding namespace
naming conventions, all namespaces will be changed
to snake case.

::Net became ::networking.

Change-Id: I6a77e36c84918174104e507453d53dfe3cb52d35
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/45417
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Daniel R. Carvalho
2021-05-06 15:50:55 -03:00
committed by Daniel Carvalho
parent 90aab2f926
commit 06fb0753fe
9 changed files with 26 additions and 23 deletions

View File

@@ -133,8 +133,8 @@ EtherSwitch::Interface::Interface(const std::string &name,
bool
EtherSwitch::Interface::recvPacket(EthPacketPtr packet)
{
Net::EthAddr destMacAddr(packet->data);
Net::EthAddr srcMacAddr(&packet->data[6]);
networking::EthAddr destMacAddr(packet->data);
networking::EthAddr srcMacAddr(&packet->data[6]);
learnSenderAddr(srcMacAddr, this);
Interface *receiver = lookupDestPort(destMacAddr);
@@ -206,7 +206,7 @@ EtherSwitch::Interface::switchingDelay()
}
EtherSwitch::Interface*
EtherSwitch::Interface::lookupDestPort(Net::EthAddr destMacAddr)
EtherSwitch::Interface::lookupDestPort(networking::EthAddr destMacAddr)
{
auto it = parent->forwardingTable.find(uint64_t(destMacAddr));
@@ -230,7 +230,7 @@ EtherSwitch::Interface::lookupDestPort(Net::EthAddr destMacAddr)
}
void
EtherSwitch::Interface::learnSenderAddr(Net::EthAddr srcMacAddr,
EtherSwitch::Interface::learnSenderAddr(networking::EthAddr srcMacAddr,
Interface *sender)
{
// learn the port for the sending MAC address

View File

@@ -81,8 +81,8 @@ class EtherSwitch : public SimObject
void sendDone() {}
Tick switchingDelay();
Interface* lookupDestPort(Net::EthAddr destAddr);
void learnSenderAddr(Net::EthAddr srcMacAddr, Interface *sender);
Interface* lookupDestPort(networking::EthAddr destAddr);
void learnSenderAddr(networking::EthAddr srcMacAddr, Interface *sender);
void serialize(CheckpointOut &cp) const;
void unserialize(CheckpointIn &cp);

View File

@@ -53,7 +53,7 @@
#include "sim/system.hh"
using namespace igbreg;
using namespace Net;
using namespace networking;
IGbE::IGbE(const Params &p)
: EtherDevice(p), etherInt(NULL),

View File

@@ -85,7 +85,7 @@ const char *NsDmaState[] =
"dmaWriteWaiting"
};
using namespace Net;
using namespace networking;
///////////////////////////////////////////////////////////////////////
//

View File

@@ -43,7 +43,7 @@
#include "sim/eventq.hh"
#include "sim/stats.hh"
using namespace Net;
using namespace networking;
GEM5_DEPRECATED_NAMESPACE(Sinic, sinic);
namespace sinic