diff options
author | Ido Barnea <ibarnea@cisco.com> | 2017-03-09 11:53:37 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2017-03-09 11:53:37 +0200 |
commit | f48443a11497c9a38c1aa3df42741e4a55ac780f (patch) | |
tree | ffa6219c03937e4edfc42c83ead7e60050a9ee99 /src/bp_sim.h | |
parent | d8a541a28d09ecc85629f29a57db8a4be1fe526c (diff) |
trex-370. Added --no-hw-flow-stat command line option
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/bp_sim.h')
-rwxr-xr-x | src/bp_sim.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bp_sim.h b/src/bp_sim.h index 435c054b..7346615a 100755 --- a/src/bp_sim.h +++ b/src/bp_sim.h @@ -419,6 +419,14 @@ public: return (btGetMaskBit32(m_flags,2,2) ? true:false); } + void set_disable_hw_flow_stat(bool enable) { + btSetMaskBit32(m_flags, 3, 3, enable ? 1 : 0); + } + + bool get_disable_hw_flow_stat() { + return (btGetMaskBit32(m_flags, 3, 3) ? true:false); + } + void set_disable_flow_control_setting(bool enable){ btSetMaskBit32(m_flags,4,4,enable?1:0); } @@ -427,7 +435,6 @@ public: return (btGetMaskBit32(m_flags,4,4) ? true:false); } - /* learn & verify mode */ void set_learn_and_verify_mode_enable(bool enable){ btSetMaskBit32(m_flags,5,5,enable?1:0); |