RDMA如何抓包,从网上看了很多都需要打开sniffer on,但是我查了以下根本没有这个选项,安装的也是迈洛斯官网驱动。
root@root:/home/user# cat /etc/issue
Ubuntu 22.04.2 LTS \n \l
root@root:/home/user# ibdump -v
ibdump, 3.0.0-7, built on Dec 18 2019, 17:02:44. GIT Version: NA
root@root:/home/user# ofed_info -s
MLNX_OFED_LINUX-5.9-0.5.6.0:
root@root:/home/user# ibdev2netdev
mlx5_0 port 1 ==> ens6f0np0 (Up)
mlx5_1 port 1 ==> ens6f1np1 (Down)
root@root:/home/user# ibdump -d mlx5_0
Initiating resources ...
searching for IB devices in host
Port active_mtu=1024
MR was registered with addr=0x56097c7e0430, lkey=0x1827d6, rkey=0x1827d6, 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
root@root:/home/user# ethtool --set-priv-flags ens6f0np0
root@root:/home/user# ethtool --show-priv-flags ens6f0np0
Private flags for ens6f0np0:
rx_cqe_moder : on
tx_cqe_moder : off
rx_cqe_compress : off
tx_cqe_compress : off
rx_striding_rq : on
rx_no_csum_complete: off
xdp_tx_mpwqe : on
skb_tx_mpwqe : on
tx_port_ts : off
dropless_rq : off
per_channel_stats : on
tx_xdp_hw_checksum : off
skb_xmit_more : off
root@root:/home/user# ethtool --set-priv-flags ens6f0np0 sniffer on
netlink error: bit name not found (offset 52)
netlink error: Operation not supported
root@root:/home/user#
root@root:/home/user# cat /etc/modprobe.d/mlnx.conf
# Module parameters for MLNX_OFED kernel modules
#
# Please don't edit this file. Create a new file under
# /etc/modprobe.d/ for your configurations.
options mlx5_core log_num_mgm_entry_size=-1