Unable to set sniffer on NIC card when using v5.8 driver

NIC: CX-5

I use v4.5-1.0.1.0 driver before, and can set sniffer on by using: ethtool --set-priv-flags xxxxx sniffer on.

But when I upgrade to v5.8-2.0.3.0 LTS driver, I’m unable to do that, same command will return error:

# ethtool --set-priv-flags enp24s0f0np0 sniffer on
netlink error: bit name not found (offset 56)
netlink error: Operation not supported

I have compared the private flags in different driver version:

v4.5:

# ethtool --show-priv-flags enp23s0f0
Private flags for enp23s0f0:
rx_cqe_moder      : on
tx_cqe_moder      : off
rx_cqe_compress   : off
rx_striding_rq    : on
sniffer           : off
dropless_rq       : off
per_channel_stats : on
tx_xdp_hw_checksum: off
hw_lro            : off

v5.8:

# ethtool --show-priv-flags enp23s0f0
Private flags for enp23s0f0:
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
hw_lro             : on
tx_xdp_hw_checksum : off
skb_xmit_more      : off

The sniffer is disapperaed in v5.8 driver. I wonder why and how to solve this problem?

Note: I want to set sniffer on due to I want to use tcpdump to capture offload network traffic. And the doc says I need to use ethtool --set-priv-flags xxxxx sniffer on for both v5.8 & v4.5 driver.

1 Like

Sorry for my careless, settting sniffer on is not needed on new driver.

I have captured the packets successfully using RDMA device.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.