summaryrefslogtreecommitdiffstats
path: root/src/bp_sim.h
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2017-03-16 11:55:04 +0200
committerHanoh Haim <hhaim@cisco.com>2017-03-16 11:55:04 +0200
commita933bd1addc181fe623ad9f60b0631bbad539190 (patch)
treef65f38ef7cfab153dc49b8d50b5110da142fdf1c /src/bp_sim.h
parentb3ffe2a0aa4b06920a75761ccc010c884ff8609d (diff)
early support mlx4 driver for connectX-3
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
Diffstat (limited to 'src/bp_sim.h')
-rwxr-xr-xsrc/bp_sim.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bp_sim.h b/src/bp_sim.h
index 24681d4b..d8f620ed 100755
--- a/src/bp_sim.h
+++ b/src/bp_sim.h
@@ -654,6 +654,14 @@ public:
return (btGetMaskBit32(m_flags1, 11, 11) ? true : false);
}
+ void set_mlx4_so_mode(bool enable) {
+ btSetMaskBit32(m_flags1, 12, 12, (enable ? 1 : 0) );
+ }
+
+ bool get_mlx4_so_mode() {
+ return (btGetMaskBit32(m_flags1, 12, 12) ? true : false);
+ }
+
public:
void Dump(FILE *fd);