RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2166909 - [Mellanox][CX6][RHEL9.2] dpdk sriov vf promisc does not work
Summary: [Mellanox][CX6][RHEL9.2] dpdk sriov vf promisc does not work
Keywords:
Status: NEW
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: dpdk
Version: 9.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Mike Pattrick
QA Contact: Hekai Wang
URL:
Whiteboard:
Depends On:
Blocks: 2183961
TreeView+ depends on / blocked
 
Reported: 2023-02-03 13:25 UTC by Hekai Wang
Modified: 2023-08-25 12:41 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2183961 (view as bug list)
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-147562 0 None None None 2023-02-03 13:28:07 UTC

Description Hekai Wang 2023-02-03 13:25:46 UTC
Description of problem:
[Mellanox][CX6][RHEL9.2] dpdk sriov vf promisc does not work

Version-Release number of selected component (if applicable):
[root@dell-per740-43 dpdk-standalone]# uname -a
Linux dell-per740-43.rhts.eng.pek2.redhat.com 5.14.0-249.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jan 30 16:51:50 EST 2023 x86_64 x86_64 x86_64 GNU/Linux
[root@dell-per740-43 dpdk-standalone]# 
[root@dell-per740-43 dpdk-standalone]# rpm -q dpdk
dpdk-22.11-1.el9.x86_64
[root@dell-per740-43 dpdk-standalone]# ethtool -i ens3f1np1
driver: mlx5_core
version: 5.14.0-249.el9.x86_64
firmware-version: 22.35.2000 (MT_0000000528)
expansion-rom-version: 
bus-info: 0000:5e:00.1
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes
[root@dell-per740-43 dpdk-standalone]# ethtool -i enp94s1f10v0
driver: mlx5_core
version: 5.14.0-249.el9.x86_64
firmware-version: 22.35.2000 (MT_0000000528)
expansion-rom-version: 
bus-info: 0000:5e:01.2
supports-statistics: yes
supports-test: yes
supports-eeprom-access: no
supports-register-dump: no
supports-priv-flags: yes
[root@dell-per740-43 dpdk-standalone]# lspci -s 0000:5e:00.1
5e:00.1 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6 Dx]
[root@dell-per740-43 dpdk-standalone]# lspci -s 0000:5e:00.1 -v
5e:00.1 Ethernet controller: Mellanox Technologies MT2892 Family [ConnectX-6 Dx]
	Subsystem: Mellanox Technologies Device 0083
	Flags: bus master, fast devsel, latency 0, IRQ 354, NUMA node 0, IOMMU group 81
	Memory at ba000000 (64-bit, prefetchable) [size=32M]
	Expansion ROM at b8900000 [disabled] [size=1M]
	Capabilities: [60] Express Endpoint, MSI 00
	Capabilities: [48] Vital Product Data
	Capabilities: [9c] MSI-X: Enable+ Count=64 Masked-
	Capabilities: [c0] Vendor Specific Information: Len=18 <?>
	Capabilities: [40] Power Management version 3
	Capabilities: [100] Advanced Error Reporting
	Capabilities: [150] Alternative Routing-ID Interpretation (ARI)
	Capabilities: [180] Single Root I/O Virtualization (SR-IOV)
	Capabilities: [230] Access Control Services
	Capabilities: [420] Data Link Feature <?>
	Kernel driver in use: mlx5_core
	Kernel modules: mlx5_core

[root@dell-per740-43 dpdk-standalone]# 



How reproducible:
100%

Steps to Reproduce:
DUT side
:: [ 08:04:32 ] :: [   LOG    ] :: [  BEGIN   ] :: Running 'vf_create ('ens3f1np1', 1, True, True) {}' 
:: [ 08:04:32 ] :: [  BEGIN   ] :: Running 'ip li set ens3f1np1 up'
:: [ 08:04:32 ] :: [   PASS   ] :: Command 'ip li set ens3f1np1 up' (Expected 0, got 0)
:: [ 08:04:36 ] :: [   LOG    ] :: 0
:: [ 08:04:41 ] :: [  BEGIN   ] :: Running 'ip li set ens3f1np1 vf 0 spoofchk on'
:: [ 08:04:41 ] :: [   PASS   ] :: Command 'ip li set ens3f1np1 vf 0 spoofchk on' (Expected 0, got 0)
:: [ 08:04:41 ] :: [  BEGIN   ] :: Running 'ip li set ens3f1np1 vf 0 trust on'
:: [ 08:04:41 ] :: [   PASS   ] :: Command 'ip li set ens3f1np1 vf 0 trust on' (Expected 0, got 0)

                dpdk-testpmd -a 0000:5e:01.2  -- -i --forward-mode=macswap --auto-start
                
EAL: Detected CPU lcores: 72
EAL: Detected NUMA nodes: 2
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
EAL: Probe PCI driver: mlx5_pci (15b3:101e) device: 0000:5e:01.2 (socket 0)
TELEMETRY: No legacy callbacks, legacy socket not created
testpmd: create a new mbuf pool <mb_pool_0>: n=435456, size=2176, socket=0
testpmd: preferred mempool ops selected: ring_mp_mc
testpmd: create a new mbuf pool <mb_pool_1>: n=435456, size=2176, socket=1
testpmd: preferred mempool ops selected: ring_mp_mc

Warning! port-topology=paired and odd forward ports number, the last port will pair with itself.

:: [ 08:05:09 ] :: [   LOG    ] :: Exec update testpmd command
:: [ 08:05:09 ] :: [   LOG    ] :: 
            stop
            set verbose 9
            port stop all
            set promisc all off
            port start all
            start

Peer side
Use scapy construct ipv4 and ipv6 packets
Actual results:
Can not receive the back packets

Expected results:
It works fine

Additional info:


Note You need to log in before you can comment on or make changes to this bug.