3 Replies Latest reply on May 11, 2018 12:41 AM by a.sandeep

    ibdump not working for 100G Mellanox card, MLNX_OFED 3.4.1

    ramakris

      Hi,

      ibdump is not working with 100G Mellanox card.  I am using RHEL 7.0 kernel 4.7.

      [root@localhost ~]# ibdump

      Initiating resources ...

      searching for IB devices in host

      Port active_mtu=1024

      MR was registered with addr=0x1219010, lkey=0x4ce0, rkey=0x4ce0, 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

        • Re: ibdump not working for 100G Mellanox card, MLNX_OFED 3.4.1
          sophie

          Hi Rama,

           

          If the port protocol is configured as Ethernet, please follow instructions from our Mellanox OFED Driver UM:

          Supported in ConnectX®-4 and ConnectX®-4 Lx adapter cards only.

           

          3.1.17 Offloaded Traffic Sniffer

          Offloaded Traffic Sniffer allows bypass kernel traffic (such as, RoCE, VMA, DPDK) to be captured by existing packet analyzer such as tcpdump.

          To enable Offloaded Traffic Sniffer:

          1.Turn ON the new ethtool private flags "sniffer" (off by default).

          $ ethtool --set-priv-flags enp130s0f0 sniffer on

           

          2.Once the sniffer flags are set on the interested Ethernet interface, run tcpdump to capture the interface's bypass kernel traffic.

           

          Note that enabling Offloaded Traffic Sniffer can cause bypass kernel traffic speed degradation.

           

          ibdump - Dump "Infiniband" traffic from Mellanox Technologies ConnectX HCA

                      The dump file can be loaded by Wireshark for graphical traffic analysis

           

          Sophie.