I just rebooted a node with a stateful install of Centos 7.3, with a ConnectX-3 card
Cable moved between a Mellanoix IB switch and a Mellanox ethernet switch.
I must say that a whole heap of drivers are still loaded in the ethernet mode, here is the list:
lsmod | grep mlx
mlx5_ib 195825 0
mlx5_core 379515 1 mlx5_ib
mlx4_ib 195768 0
ib_sa 33950 5 rdma_cm,ib_cm,mlx4_ib,rdma_ucm,ib_ipoib
ib_mad 55975 4 ib_cm,ib_sa,mlx4_ib,ib_umad
ib_core 141088 12 rdma_cm,ib_cm,ib_sa,iw_cm,mlx4_ib,mlx5_ib,ib_mad,ib_ucm,ib_umad,ib_uverbs,rdma_ucm,ib_ipoib
mlx4_en 132565 0
vxlan 41236 2 mlx4_en,mlx5_core
mlx4_core 348954 2 mlx4_en,mlx4_ib
mlx_compat 16639 17 rdma_cm,ib_cm,ib_sa,iw_cm,mlx4_en,mlx4_ib,mlx5_ib,ib_mad,ib_ucm,ib_addr,ib_core,ib_umad,ib_uverbs,mlx4_core,mlx5_core,rdma_ucm,ib_ipoib
ptp 19231 7 igb,tg3,bnx2x,ixgbe,e1000e,mlx4_en,mlx5_core
oot@comp04 ~]# ibstat
CA 'mlx4_0'
CA type: MT4099
Number of ports: 1
Firmware version: 2.33.5100
Hardware version: 1
Node GUID: 0xe41d2d0300b09470
System image GUID: 0xe41d2d0300b09473
Port 1:
State: Active
Physical state: LinkUp
Rate: 56
Base lid: 6
LMC: 0
SM lid: 1
Capability mask: 0x02514868
Port GUID: 0xe41d2d0300b09471
Link layer: InfiniBand
[root@comp04 ~]# ethtool ens1
Settings for ens1:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseKX/Full
10000baseKX4/Full
10000baseKR/Full
40000baseCR4/Full
40000baseSR4/Full
Supported pause frame use: Symmetric Receive-only
Supports auto-negotiation: Yes
Advertised link modes: 1000baseKX/Full
10000baseKX4/Full
10000baseKR/Full
40000baseCR4/Full
40000baseSR4/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Link partner advertised link modes: 40000baseCR4/Full
Link partner advertised pause frame use: No
Link partner advertised auto-negotiation: Yes
Speed: 40000Mb/s
Duplex: Full
Port: Direct Attach Copper
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000014 (20)
link ifdown
Link detected: yes