dev: Refactor the EtherTapStub to make room for using tap.
authorGabe Black <gabeblack@google.com>
Sat, 3 Jun 2017 12:03:18 +0000 (05:03 -0700)
committerGabe Black <gabeblack@google.com>
Sat, 3 Jun 2017 15:23:46 +0000 (15:23 +0000)
commit2ce045341b73166cad2ef95b37c87d8d4c590d80
treeeb46ce8c910cd04d39477da459915802105c5729
parentf9ad4066d71748829c11868b5b92ba092ee9513b
dev: Refactor the EtherTapStub to make room for using tap.

A lot of the implementation of EtherTapStub can be shared with a version
which uses a tap device directly. This change factors out those parts to
accommodate that.

Change-Id: I9c2e31f1be139ca73859a83f05457cef90101006
Reviewed-on: https://gem5-review.googlesource.com/3645
Reviewed-by: Nathan Binkert <nate@binkert.org>
Maintainer: Nathan Binkert <nate@binkert.org>
src/dev/net/Ethernet.py
src/dev/net/ethertap.cc
src/dev/net/ethertap.hh