I tried compile it with -7. the same result:
./build/build/app/test-pmd/testpmd -c 0xf -n 4 -w 0000:01:00.0 – --rxq=2 --txq=2 -i
EAL: Detected lcore 0 as core 0 on socket 0
EAL: Detected lcore 1 as core 1 on socket 0
EAL: Detected lcore 2 as core 2 on socket 0
EAL: Detected lcore 3 as core 3 on socket 0
EAL: Detected lcore 4 as core 4 on socket 0
EAL: Detected lcore 5 as core 5 on socket 0
EAL: Support maximum 128 logical core(s) by configuration.
EAL: Detected 6 lcore(s)
EAL: VFIO modules not all loaded, skip VFIO support…
EAL: Setting up physically contiguous memory…
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7caaa00000 (size = 0x200000)
EAL: Ask a virtual area of 0x28c00000 bytes
EAL: Virtual area found at 0x7f7c81c00000 (size = 0x28c00000)
EAL: Ask a virtual area of 0x1000000 bytes
EAL: Virtual area found at 0x7f7c80a00000 (size = 0x1000000)
EAL: Ask a virtual area of 0x40000000 bytes
EAL: Virtual area found at 0x7f7c40800000 (size = 0x40000000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7c40400000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7c40000000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7c3fc00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7c3f800000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7c3f400000 (size = 0x200000)
EAL: Ask a virtual area of 0x1400000 bytes
EAL: Virtual area found at 0x7f7c3de00000 (size = 0x1400000)
EAL: Ask a virtual area of 0xa00000 bytes
EAL: Virtual area found at 0x7f7c3d200000 (size = 0xa00000)
EAL: Ask a virtual area of 0xe00000 bytes
EAL: Virtual area found at 0x7f7c3c200000 (size = 0xe00000)
EAL: Ask a virtual area of 0x1600000 bytes
EAL: Virtual area found at 0x7f7c3aa00000 (size = 0x1600000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7c3a600000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7c3a200000 (size = 0x200000)
EAL: Ask a virtual area of 0xf800000 bytes
EAL: Virtual area found at 0x7f7c2a800000 (size = 0xf800000)
EAL: Ask a virtual area of 0x69000000 bytes
EAL: Virtual area found at 0x7f7bc1600000 (size = 0x69000000)
EAL: Ask a virtual area of 0x800000 bytes
EAL: Virtual area found at 0x7f7bc0c00000 (size = 0x800000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f7bc0600000 (size = 0x400000)
EAL: Ask a virtual area of 0x800000 bytes
EAL: Virtual area found at 0x7f7bbfc00000 (size = 0x800000)
EAL: Ask a virtual area of 0x400000 bytes
EAL: Virtual area found at 0x7f7bbf600000 (size = 0x400000)
EAL: Ask a virtual area of 0x2800000 bytes
EAL: Virtual area found at 0x7f7bbcc00000 (size = 0x2800000)
EAL: Ask a virtual area of 0x800000 bytes
EAL: Virtual area found at 0x7f7bbc200000 (size = 0x800000)
EAL: Ask a virtual area of 0x4000000 bytes
EAL: Virtual area found at 0x7f7bb8000000 (size = 0x4000000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7bb7c00000 (size = 0x200000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7bb7800000 (size = 0x200000)
EAL: Ask a virtual area of 0xfc00000 bytes
EAL: Virtual area found at 0x7f7ba7a00000 (size = 0xfc00000)
EAL: Ask a virtual area of 0x200000 bytes
EAL: Virtual area found at 0x7f7ba7600000 (size = 0x200000)
EAL: Requesting 2048 pages of size 2MB from socket 0
EAL: TSC frequency is ~3699895 KHz
EAL: Master lcore 0 is ready (tid=ac7db900;cpuset=[0])
EAL: lcore 1 is ready (tid=a6de7700;cpuset=[1])
EAL: lcore 2 is ready (tid=a65e6700;cpuset=[2])
EAL: lcore 3 is ready (tid=a5de5700;cpuset=[3])
EAL: PCI device 0000:01:00.0 on NUMA socket 0
EAL: probe driver: 15b3:1003 librte_pmd_mlx4
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4769: mlx4_pci_devinit(): using driver device index 0
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4791: mlx4_pci_devinit(): checking device “mlx4_0”
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4802: mlx4_pci_devinit(): PCI information matches, using device “mlx4_0” (VF: false)
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4822: mlx4_pci_devinit(): device opened
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4825: mlx4_pci_devinit(): 2 port(s) detected
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4847: mlx4_pci_devinit(): using port 1 (00000001)
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4915: mlx4_pci_devinit(): device flags: IBV_DEVICE_QPG IBV_DEVICE_RSS
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4918: mlx4_pci_devinit(): maximum RSS indirection table size: 256
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4927: mlx4_pci_devinit(): checksum offloading is not supported
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4932: mlx4_pci_devinit(): L2 tunnel checksum offloads are not supported
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4973: mlx4_pci_devinit(): port 1 MAC address is f4:52:14:22:a2:71
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4987: mlx4_pci_devinit(): port 1 ifname is “mlnx0”
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4994: mlx4_pci_devinit(): port 1 MTU is 1500
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:5021: mlx4_pci_devinit(): forcing Ethernet interface up
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4847: mlx4_pci_devinit(): using port 2 (00000002)
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4862: mlx4_pci_devinit(): bad state for port 2: “down” (1)
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4915: mlx4_pci_devinit(): device flags: IBV_DEVICE_QPG IBV_DEVICE_RSS
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4918: mlx4_pci_devinit(): maximum RSS indirection table size: 256
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4927: mlx4_pci_devinit(): checksum offloading is not supported
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4932: mlx4_pci_devinit(): L2 tunnel checksum offloads are not supported
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4973: mlx4_pci_devinit(): port 2 MAC address is f4:52:14:22:a2:72
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4987: mlx4_pci_devinit(): port 2 ifname is “mlnx1”
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:4994: mlx4_pci_devinit(): port 2 MTU is 1500
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:5021: mlx4_pci_devinit(): forcing Ethernet interface up
Interactive-mode selected
Configuring Port 0 (socket 0)
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:690: dev_configure(): 0x8c3560: TX queues number update: 0 → 2
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:696: dev_configure(): 0x8c3560: RX queues number update: 0 → 2
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:3399: rxq_setup(): priv->device_attr.max_qp_wr is 16351
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:3401: rxq_setup(): priv->device_attr.max_sge is 32
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:3066: rxq_setup_qp_rss(): initializing parent RSS queue
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:3412: rxq_setup(): 0x8c3560: QP creation failure: Invalid argument
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:2440: rxq_cleanup(): cleaning up 0x7ffdc3e1cc40
/root/MLNX_DPDK-2.1_1.1/drivers/net/mlx4/mlx4.c:1939: rxq_free_elts(): 0x7ffdc3e1cc40: freeing WRs
Fail to configure port 0
EAL: Error - exiting with code: 1
Cause: Start ports failed