diff options
author | Nathan Binkert <binkertn@umich.edu> | 2004-11-13 16:33:16 -0500 |
---|---|---|
committer | Nathan Binkert <binkertn@umich.edu> | 2004-11-13 16:33:16 -0500 |
commit | acb98fb0f64a3b6a4f2f3151b0d4fb14fdfcf7cf (patch) | |
tree | 4daefdaf22007eb42f30043334447de27e8aa7cb /dev/ns_gige.hh | |
parent | bd3e3c02300312ae8d00ae9abf3fa009a2cddbc7 (diff) | |
download | gem5-acb98fb0f64a3b6a4f2f3151b0d4fb14fdfcf7cf.tar.xz |
we shouldn't ever pass around references to PacketPtrs,
const references are ok, or pass by value.
--HG--
extra : convert_revision : 7280a1c7d22b9294fddbe50f02f6f4c6ca9b2e5b
Diffstat (limited to 'dev/ns_gige.hh')
-rw-r--r-- | dev/ns_gige.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/ns_gige.hh b/dev/ns_gige.hh index 5f023dccc..fc2c88a6c 100644 --- a/dev/ns_gige.hh +++ b/dev/ns_gige.hh @@ -295,7 +295,7 @@ class NSGigE : public PciDev * receive address filter */ bool rxFilterEnable; - bool rxFilter(PacketPtr &packet); + bool rxFilter(const PacketPtr &packet); bool acceptBroadcast; bool acceptMulticast; bool acceptUnicast; @@ -360,7 +360,7 @@ class NSGigE : public PciDev bool cpuIntrPending() const; void cpuIntrAck() { cpuIntrClear(); } - bool recvPacket(PacketPtr &packet); + bool recvPacket(PacketPtr packet); void transferDone(); void setInterface(NSGigEInt *i) { assert(!interface); interface = i; } @@ -407,7 +407,7 @@ class NSGigEInt : public EtherInt NSGigEInt(const std::string &name, NSGigE *d) : EtherInt(name), dev(d) { dev->setInterface(this); } - virtual bool recvPacket(PacketPtr &pkt) { return dev->recvPacket(pkt); } + virtual bool recvPacket(PacketPtr pkt) { return dev->recvPacket(pkt); } virtual void sendDone() { dev->transferDone(); } }; |