I have a new test of this.
1. configure environment.
2. sudo hca_self_test.ofed
$sudo hca_self_test.ofed
---- Performing Adapter Device Self Test ----
Number of CAs Detected … 2
PCI Device Check … PASS
Kernel Arch … x86_64
Host Driver Version … mlnx-en-4.0-2.0.0.1 (OFED-4.0-2.0.0): 3.10.0-327.el7.x86_64
Host Driver RPM Check … PASS
Firmware on CA #0 NIC … v14.21.2010
Firmware on CA #1 NIC … v14.21.2010
Host Driver Initialization … PASS
Number of CA Ports Active … 2
Port State of Port #1 on CA #0 (NIC)… UP 1X EDR (Ethernet)
Port State of Port #1 on CA #1 (NIC)… UP 1X EDR (Ethernet)
Error Counter Check on CA #0 (NIC)… PASS
Error Counter Check on CA #1 (NIC)… PASS
Kernel Syslog Check … PASS
Node GUID on CA #0 (NIC) … 24:8a:07:03:00:b4:f7:2e
Node GUID on CA #1 (NIC) … 24:8a:07:03:00:b4:f7:2f
------------------ DONE ---------------------
3. test dpdk: testpmd
sudo ./testpmd -c 0xff00 -n 4 -w 0000:01:00.1 – --rxq=2 --txq=2 -i
EAL: Detected 64 lcore(s)
EAL: No free hugepages reported in hugepages-1048576kB
EAL: Probing VFIO support…
EAL: PCI device 0000:01:00.1 on NUMA socket 0
EAL: probe driver: 15b3:1015 net_mlx5
PMD: net_mlx5: PCI information matches, using device “mlx5_1” (SR-IOV: false, MPS: true)
PMD: net_mlx5: 1 port(s) detected
PMD: net_mlx5: MPS is enabled
PMD: net_mlx5: port 1 MAC address is 24:8a:07:b4:f7:2e
Interactive-mode selected
USER1: create a new mbuf pool <mbuf_pool_socket_0>: n=203456, size=2176, socket=0
Configuring Port 0 (socket 0)
PMD: net_mlx5: 0xce4d80: TX queues number update: 0 → 2
PMD: net_mlx5: 0xce4d80: RX queues number update: 0 → 2
Port 0: 24:8A:07:B4:F7:2E
Checking link statuses…
Done
testpmd> start
io packet forwarding - ports=1 - cores=1 - streams=2 - NUMA support enabled, MP over anonymous pages disabled
Logical Core 9 (socket 0) forwards packets on 2 streams:
RX P=0/Q=0 (socket 0) → TX P=0/Q=0 (socket 0) peer=02:00:00:00:00:00
RX P=0/Q=1 (socket 0) → TX P=0/Q=1 (socket 0) peer=02:00:00:00:00:00
io packet forwarding - CRC stripping enabled - packets/burst=32
nb forwarding cores=1 - nb forwarding ports=1
RX queues=2 - RX desc=128 - RX free threshold=0
RX threshold registers: pthresh=0 hthresh=0 wthresh=0
TX queues=2 - TX desc=512 - TX free threshold=0
TX threshold registers: pthresh=0 hthresh=0 wthresh=0
TX RS bit threshold=0 - TXQ flags=0x0
testpmd> show port stats all
######################## NIC statistics for port 0 ########################
RX-packets: 256 RX-missed: 0 RX-bytes: 22364
RX-errors: 0
RX-nombuf: 0
TX-packets: 0 TX-errors: 0 TX-bytes: 0
Throughput (since last show)
Rx-pps: 0
Tx-pps: 0
############################################################################
testpmd> stop
Telling cores to stop…
Waiting for lcores to finish…
---------------------- Forward statistics for port 0 ----------------------
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
+++++++++++++++ Accumulated forward statistics for all ports+++++++++++++++
RX-packets: 0 RX-dropped: 0 RX-total: 0
TX-packets: 0 TX-dropped: 0 TX-total: 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Done.
It seems ok.
4. AGAIN :
sudo hca_self_test.ofed
---- Performing Adapter Device Self Test ----
Number of CAs Detected … 2
PCI Device Check … PASS
Kernel Arch … x86_64
Host Driver Version … mlnx-en-4.0-2.0.0.1 (OFED-4.0-2.0.0): 3.10.0-327.el7.x86_64
Host Driver RPM Check … PASS
Firmware on CA #0 NIC … v14.21.2010
Firmware on CA #1 NIC … v14.21.2010
Host Driver Initialization … PASS
Number of CA Ports Active … 1
Port State of Port #1 on CA #0 (NIC)… UP 1X EDR (Ethernet)
Port State of Port #1 on CA #1 (NIC)… DOWN (Ethernet)
Error Counter Check on CA #0 (NIC)… PASS
Error Counter Check on CA #1 (NIC)… PASS
Kernel Syslog Check … PASS
Node GUID on CA #0 (NIC) … 24:8a:07:03:00:b4:f7:2e
Node GUID on CA #1 (NIC) … 24:8a:07:03:00:b4:f7:2f
------------------ DONE ---------------------
We can see that " Port State of Port #1 on CA #1 (NIC)… DOWN (Ethernet) " .
I guess there may be a problem with this parameter: -w 0000:01:00.1 ?
Thanks!