ethtool doesn't show sniffer cap on upstream driver

reproduce:

[xxxx@yyyyy~]$ ethtool --show-priv-flags ens2f0np0

Private flags for ens2f0np0:

rx_cqe_moder : on

tx_cqe_moder : off

rx_cqe_compress : off

rx_striding_rq : on

rx_no_csum_complete: off

xdp_tx_mpwqe : on

NIC details:

Ethernet controller: Mellanox Technologies MT28908 Family [ConnectX-6]

[xxxxx@yyyyy~]$ uname -a

Linux yyyyy 5.8.2-1.el8.elrepo.x86_64 #1 SMP Tue Aug 18 18:38:22 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux

[xxxx@yyyyy ~]$ cat /etc/os-release

NAME=“CentOS Linux”

VERSION=“8 (Core)”

ID=“centos”

ID_LIKE=“rhel fedora”

VERSION_ID=“8”

PLATFORM_ID=“platform:el8”

PRETTY_NAME=“CentOS Linux 8 (Core)”

ANSI_COLOR=“0;31”

CPE_NAME=“cpe:/o:centos:centos:8”

HOME_URL=“https://www.centos.org/

BUG_REPORT_URL=“https://bugs.centos.org/

CENTOS_MANTISBT_PROJECT=“CentOS-8”

CENTOS_MANTISBT_PROJECT_VERSION=“8”

REDHAT_SUPPORT_PRODUCT=“centos”

REDHAT_SUPPORT_PRODUCT_VERSION=“8”

Hi Morad,

In order to capture RoCR traffic, you should have:

  • Libpcap - from version 1.5.3-12 (and above), which supports ‘–enable-rdma’
  • Tcpdump - from version 4.9.2-4 (and above)

Then, you will be able to run tcpdump -i to capture RoCE traffic.

e.g:

tcpdump -i mlx5_0

It should work with MLNX_OFED 5.1-0 (and above) or with the Inbox driver.

Regards,

Chen

Thank you, its working now!