hmmm....
I just tried the connectx_port_config command on my HCA and it worked as shown below.
what version of OFED are you running? You can type...
[root@localhost ~]# ofed_info | head -1
MLNX_OFED_LINUX-2.0-2.0.5 (OFED-2.0-2.0.5)
# lspci -v | grep Mell
02:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]
Subsystem: Mellanox Technologies Device 0050
[root@localhost ~]# connectx_port_config
ConnectX PCI devices :
|----------------------------|
| 1 0000:02:00.0 |
|----------------------------|
Before port change:
eth
eth
|----------------------------|
| Possible port modes: |
| 1: Infiniband |
| 2: Ethernet |
| 3: AutoSense |
|----------------------------|
Select mode for port 1 (1,2,3): 1
Select mode for port 2 (1,2,3): 1
After port change:
ib
ib