I have tried tcpdump to dump traffic from a mirror-port but ROCEv2 packages are not seen in .pcap file.
Now I’m trying to start ibdump from OFED, but get this error:
server51:~$ sudo ibdump -d mlx5_0
Initiating resources …
searching for IB devices in host
Port active_mtu=1024
MR was registered with addr=0x56052219ab00, lkey=0x651e, rkey=0x651e, flags=0x1
Device : “mlx5_0”
Physical port : 1
Link layer : Ethernet
Dump file : sniffer.pcap
Sniffer WQEs (max burst size) : 4096
Failed to set port sniffer1: command interface bad param
Any idea how to fix it? or capture ROCEv2 packages by another tool?
here are more details
server51:~$ ofed_info | grep ibdump
ibdump:
/sw/release/mlnx_ofed/IBHPC/MLNX_OFED_LINUX-5.8-1.0.1/SRPMS/ibdump-6.0.0-1.58101.src.rpm
ii ibdump 6.0.0-1.58307 amd64 Mellanox packets sniffer tool
server51:~$ ibdump -version
ibdump, 3.0.0-7, built on Dec 18 2019, 17:02:44. GIT Version: NA
server51:~$ uname -a
Linux server51 5.15.0-89-generic #99~20.04.1-Ubuntu SMP Thu Nov 2 15:16:47 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
server51:~$ ibv_devices
device node GUID
------ ----------------
mlx5_0 1070fd030079a55c
mlx5_1 1070fd030079a55d
server51:~$ ibv_devinfo
hca_id: mlx5_0
transport: InfiniBand (0)
fw_ver: 16.35.3006
node_guid: 1070:fd03:0079:a55c
sys_image_guid: 1070:fd03:0079:a55c
vendor_id: 0x02c9
vendor_part_id: 4121
hw_ver: 0x0
board_id: MT_0000000013
phys_port_cnt: 1
port: 1
state: PORT_ACTIVE (4)
max_mtu: 4096 (5)
active_mtu: 1024 (3)
sm_lid: 0
port_lid: 0
port_lmc: 0x00
link_layer: Ethernet
hca_id: mlx5_1
transport: InfiniBand (0)
fw_ver: 16.35.3006
node_guid: 1070:fd03:0079:a55d
sys_image_guid: 1070:fd03:0079:a55c
vendor_id: 0x02c9
vendor_part_id: 4121
hw_ver: 0x0
board_id: MT_0000000013
phys_port_cnt: 1
port: 1
state: PORT_DOWN (1)
max_mtu: 4096 (5)
active_mtu: 1024 (3)
sm_lid: 0
port_lid: 0
port_lmc: 0x00
link_layer: Ethernet