diff options
author | Hanoh Haim <hhaim@cisco.com> | 2017-02-07 14:29:38 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2017-02-13 12:32:25 +0200 |
commit | 5d2b2709ecca8789200296f112f89d6dd3300085 (patch) | |
tree | 66b620ca2a5041680a4553f566e257c552481d77 /src/bp_sim.h | |
parent | df1d83a3e62c237ae30272b36ae283a5fb7334a8 (diff) |
add --mlx5-so option to load mlx5 share object
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src/bp_sim.h')
-rwxr-xr-x | src/bp_sim.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bp_sim.h b/src/bp_sim.h index a5153792..7ee221b5 100755 --- a/src/bp_sim.h +++ b/src/bp_sim.h @@ -635,7 +635,15 @@ public: bool get_rt_prio_mode() { return (btGetMaskBit32(m_flags1, 10, 10) ? true : false); } - + + void set_mlx5_so_mode(bool enable) { + btSetMaskBit32(m_flags1, 11, 11, (enable ? 1 : 0) ); + } + + bool get_mlx5_so_mode() { + return (btGetMaskBit32(m_flags1, 11, 11) ? true : false); + } + public: void Dump(FILE *fd); |