ConnectX-5 traffic capture on RX ring

Hi,

I would like to know how to capture traffic at one of RX rings. I have MCX556A ConnectX-5 VPI card with OFED 4.7 that works on ethernet port. I’m using ethtool -U to steer specific traffic to one of the rings. Is there any way to capture just that one ring? What tool should I use for this?

Is there also a posibility to dropless capture traffic from interface (around 50 Gb/s)?

Thanks,

Piotr

Hi Piotr,

You can use ethtool -S, mlnx_perf.

IE: (Change according to the receive queue(s) and interface(s)you want to monitor:

while true; do ethtool -S enp130s0f1 | grep rx0_packet ;sleep 1 ;done

rx0_packets: 0

rx0_packets: 0

rx0_packets: 0

rx0_packets: 0

rx0_packets: 0

rx0_packets: 0

Traffic monitoring:

mlnx_perf -i | tee -a /tmp/

Sophie.

Hi Sophie,

this is traffic statistics monitoring. I’m asking about capturing traffic. Is there a way to use for example tcpdump or other tool to capture raw packets and create pcap file? I can’t find the way to choose specific receive queue.

Piotr