From a933bd1addc181fe623ad9f60b0631bbad539190 Mon Sep 17 00:00:00 2001 From: Hanoh Haim Date: Thu, 16 Mar 2017 11:55:04 +0200 Subject: early support mlx4 driver for connectX-3 Signed-off-by: Hanoh Haim --- src/bp_sim.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/bp_sim.h') 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); -- cgit 1.2.3-korg