For those that are reading this now who might be new to the forum (such as myself) - if you are using Linux, you can set the port type on Mellanox Infiniband cards using the following procedure:
1. su to root (if you're running Ubuntu, etc. and root account is disabled by default, you can either enable the root account or you can use su -s)
2. Download and install the Mellanox Firmware Tools (MFT).
3. Find out the PCI device name:
# mlxfwmanager --query
That will query all devices and output the PCI Device Name, which you are going to need to set the port link types.
4. Set the port link types:
# mlxconfig -d /dev/mst/mt4115_pciconf0 set LINK_TYPE_P1=2 LINK_TYPE_P2=2
replace the stuff after the flag '-d' with your PCI device name obtained from (3). The example that I have provided above is what I have, where I've got a dual-port card, and therefore; I can set the link type for both ports.
Alternatively, if you have a dual port card, and you actually USE Infiniband (because you aren't only doing NIC to NIC direct attached link, but you're plugged in to a switch), then you might set one port to be running IB and the other port running ETH.
Perhaps this might be useful for other people in the future, who might be using something like this.
(P.S. The Mellanox 100 GbE switches are more expensive (per port) than their IB switches.)