summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.h
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2017-02-07 14:29:38 +0200
committerIdo Barnea <ibarnea@cisco.com>2017-02-13 12:32:25 +0200
commit5d2b2709ecca8789200296f112f89d6dd3300085 (patch)
tree66b620ca2a5041680a4553f566e257c552481d77 /src/bp_sim.h
parentdf1d83a3e62c237ae30272b36ae283a5fb7334a8 (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-xsrc/bp_sim.h10
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);