4 Replies Latest reply on Nov 4, 2015 4:21 PM by wb_Intel

    Wireshark/Tshark on Host SR-IOV Interface

    ericjwolf

      Greetings

       

      I am working on testing a DPDK based VM and need to see if packets are really leaving the host interface.  I am using an HP DL-380 server with Intel based 10G nics.  I have enabled SR-IOV and am using 1 VF on each of 2 PFs.  I want to sniff packets on the host but when I start tshark on the PF device I do not see any packets. but I know they are are passing to the VM (some of them anyway).  How can you setup the PF to be able to see

      traffic to the VF or when the VF is enabled it completely bi-passes this capability?

       

      Host Info:

       

      root@srvrhp811:~# uname -a

      Linux srvrhp811 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

       

       

      root@srvrhp811:~# ip link show dev p5p2

      11: p5p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000

          link/ether 8c:dc:d4:aa:6b:59 brd ff:ff:ff:ff:ff:ff

          vf 0 MAC 16:cc:19:fc:33:91, spoof checking off, link-state auto

          vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 2 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 3 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 4 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 5 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 6 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 7 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

      root@srvrhp811:~# ip link show dev p2p2

      6: p2p2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000

          link/ether 8c:dc:d4:aa:6c:55 brd ff:ff:ff:ff:ff:ff

          vf 0 MAC 02:42:b8:01:a5:0f, spoof checking off, link-state auto

          vf 1 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 2 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 3 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 4 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 5 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 6 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

          vf 7 MAC 00:00:00:00:00:00, spoof checking on, link-state auto

       

      root@srvrhp811:~# ethtool -i p2p2

      driver: ixgbe

      version: 4.1.5

      firmware-version: 0x800007c7, 1.475.0

      bus-info: 0000:07:00.1

      supports-statistics: yes

      supports-test: yes

      supports-eeprom-access: yes

      supports-register-dump: yes

      supports-priv-flags: no


      root@srvrhp811:~# ethtool -i p5p2

      driver: ixgbe

      version: 4.1.5

      firmware-version: 0x800007c7, 1.475.0

      bus-info: 0000:24:00.1

      supports-statistics: yes

      supports-test: yes

      supports-eeprom-access: yes

      supports-register-dump: yes

      supports-priv-flags: no