I am having a strange issue in FreeNAS: I have a few HP MCX354A-QCBT cards with 10GbE. I had one installed in my FreeNAS box. It connects successfully to my SX6012 switch port with speed set at 10G. Recently I setup a Ubuntu box to flash all of them to FCBT. After that, they can connect to the SX6012 at 40G from Ubuntu. However, I could not get it to connect at 40G from FreeNAS. The media type shown by ifconfig is 10Gbase-CX4. If I set the switch port at 40G, the link will be broken. How can I get it to work as 40G? Manually setting media type would fail:
Another unrelated question: is there additional configuration necessary on FreeNAS side to support PFC enabled switch port? If PFC is enabled on the port (either for iperf client or server or both), I can only get to 2-3G from iperf. Only if PFC is off for both client and server, I can get to about 9.5Gbps.
Code:
root@ZFS01[~]# ifconfig mlxen1
mlxen1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 9000
description: mlxen1
options=ed07bb<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,TSO4,TSO6,LRO,VLAN_HWFILTER,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
ether 00:02:c9:41:f6:91
hwaddr 00:02:c9:41:f6:91
inet 192.168.70.12 netmask 0xffffff00 broadcast 192.168.70.255
nd6 options=9<PERFORMNUD,IFDISABLED>
media: Ethernet autoselect (10Gbase-CX4 <full-duplex>)
status: active
root@ZFS01[~]# ifconfig mlxen1 down
root@ZFS01[~]# ifconfig mlxen1 media 40GBase-SR4 mediaopt full-duplex
ifconfig: SIOCSIFMEDIA (media): Device not configured
root@ZFS01[~]# ifconfig mlxen1 up
root@ZFS01[~]# ifconfig mlxen1 media 40GBase-SR4 mediaopt full-duplex
ifconfig: SIOCSIFMEDIA (media): Device not configured
root@ZFS01[~]# ifconfig mlxen1 media 40GBase-LR4 mediaopt full-duplex
ifconfig: SIOCSIFMEDIA (media): Device not configured
root@ZFS01[~]# ifconfig mlxen1 media 40GBase-CR4 mediaopt full-duplex
ifconfig: SIOCSIFMEDIA (media): Invalid argument