diff options
author | Gabe Black <gabeblack@google.com> | 2019-05-02 15:33:32 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-05-18 10:20:20 +0000 |
commit | 972c38b1cc5f6f6c649a0e9923695447bc5d6255 (patch) | |
tree | ba3ca960ad12e37c38d8d17ff53b267fd5511688 /src/dev/net/sinic.cc | |
parent | e2656006df442a995bf80ee03fa9700d6ec14537 (diff) | |
download | gem5-972c38b1cc5f6f6c649a0e9923695447bc5d6255.tar.xz |
arch, base, cpu, dev, mem, sim: Remove #if 0-ed out code.
This code will be preserved through version control, but otherwise
creates clutter and will rot in place since it's never compiled.
Change-Id: Id265f6deac445116843956ea5cf1210d8127274e
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18608
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/dev/net/sinic.cc')
-rw-r--r-- | src/dev/net/sinic.cc | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/dev/net/sinic.cc b/src/dev/net/sinic.cc index 8d73d1542..c6260078c 100644 --- a/src/dev/net/sinic.cc +++ b/src/dev/net/sinic.cc @@ -1170,40 +1170,6 @@ Device::rxFilter(const EthPacketPtr &packet) panic("receive filter not implemented\n"); bool drop = true; - -#if 0 - string type; - - EthHdr *eth = packet->eth(); - if (eth->unicast()) { - // If we're accepting all unicast addresses - if (acceptUnicast) - drop = false; - - // If we make a perfect match - if (acceptPerfect && params->eaddr == eth.dst()) - drop = false; - - if (acceptArp && eth->type() == ETH_TYPE_ARP) - drop = false; - - } else if (eth->broadcast()) { - // if we're accepting broadcasts - if (acceptBroadcast) - drop = false; - - } else if (eth->multicast()) { - // if we're accepting all multicasts - if (acceptMulticast) - drop = false; - - } - - if (drop) { - DPRINTF(Ethernet, "rxFilter drop\n"); - DDUMP(EthernetData, packet->data, packet->length); - } -#endif return drop; } |