Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-14636

[CX5][RHEL8.9]dpdk-testpmd sriov vf promisc doesn't work

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Undefined Undefined
    • None
    • rhel-8.9.0
    • dpdk
    • None
    • None
    • None
    • rhel-sst-network-fastdatapath
    • ssg_networking
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Please provide the package NVR for which bug is seen:

      4.18.0-513.5.1.el8_9.x86_64

      dpdk-21.11-3.el8.x86_64

      How reproducible:

      always

      Steps to reproduce

      there are back-to-back topology. Client runs scapy, Server runs dpdk-testpmd

      for server

      1. create 1 vf on pf, then set spoofchk on and trust on for vf
      2. run dpdk-testpmd
      3. dpdk-testpmd a 0000:04:00.2   -i --forward-mode=macswap --auto-start
      4.  run command inside testpmd>         stop
                   > set verbose 9
                    >port stop all
                    >set promisc all off
                    >port start all
                    >start
      5. after client send traffic,  there are 2 packets captured in testpmd

      for client

      1. send no tag /tag/qinq traffic separated

      python -c 'from scapy.all import *; sendp(Ether(src="0c:42:a1:22:a3:46", dst="f6:2e:92:c3:f1:ae")//IP(src="1.1.1.1", dst="2.2.2.2")/ICMP(), iface="enp4s0f0", inter=1)'   ##dstmac is server vf mac

      python -c 'from scapy.all import *; sendp(Ether(src="0c:42:a1:22:a3:46", dst="f6:2e:92:c3:f1:ae")/Dot1Q(vlan=10)/Dot1Q(vlan=20)/IP(src="1.1.1.1", dst="2.2.2.2")/ICMP(), iface="enp4s0f0", inter=1)'   ##dstmac is server vf mac

       python -c 'from scapy.all import *; sendp(Ether(src="0c:42:a1:22:a3:46", dst="f6:2e:92:c3:f1:ae")/Dot1Q(vlan=10)/IP(src="1.1.1.1", dst="2.2.2.2")/ICMP(), iface="enp4s0f0", inter=1)'   ##dstmac is server vf mac

             2. capture packets on enp4s0f0 ,

      Expected results

      capture 2 packets on client side

      Actual results

      there is just 1 packet once

              echaudro@redhat.com Eelco Chaudron
              rh-ee-jiqiu Jiying Qiu
              Eelco Chaudron Eelco Chaudron
              Jiying Qiu Jiying Qiu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: