sim,dev: Get rid of the global retryTime constant.
authorGabe Black <gabeblack@google.com>
Sat, 23 May 2020 14:19:48 +0000 (07:19 -0700)
committerGabe Black <gabeblack@google.com>
Mon, 25 May 2020 12:44:38 +0000 (12:44 +0000)
commit72ed8c6e76f1d0512898cf14b429b667f8e6a713
tree178817626b069e6a569b3053d0c1e7d224bb8245
parent1425640edaa74429b8116ce8758cb9f72d6c90c4
sim,dev: Get rid of the global retryTime constant.

This constant isn't in normalized units, ie doesn't scale when the time
value of a Tick changes, is global, has an extremely generic name even
though it's only used by a few ethernet devices, and has an arbitrary
value.

Get rid of it, and replace it with 1ns, what it would typically be
equivalent to when using the default 1ps time scale.

Change-Id: I31d9dad438f854b4152cd53c9a7042a25d13e0a6
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29398
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/net/etherswitch.cc
src/dev/net/ethertap.cc
src/dev/net/ns_gige.cc
src/sim/core.hh