From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124])
by inbox.dpdk.org (Postfix) with ESMTP id 6A80F45EDA;
Wed, 18 Dec 2024 11:49:21 +0100 (CET)
Received: from mails.dpdk.org (localhost [127.0.0.1])
by mails.dpdk.org (Postfix) with ESMTP id 0D59D4066E;
Wed, 18 Dec 2024 11:49:21 +0100 (CET)
Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178])
by mails.dpdk.org (Postfix) with ESMTP id 8D253402AE
for ; Wed, 18 Dec 2024 11:49:19 +0100 (CET)
Received: by inbox.dpdk.org (Postfix, from userid 33)
id 706A645EDB; Wed, 18 Dec 2024 11:49:19 +0100 (CET)
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [DPDK/examples Bug 1606]
flow_filtering/flow_filtering_mismatch_rule: Some mismatch rule packets match
the rule
Date: Wed, 18 Dec 2024 10:49:19 +0000
X-Bugzilla-Reason: AssignedTo
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: DPDK
X-Bugzilla-Component: examples
X-Bugzilla-Version: 24.11
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: linglix.chen@intel.com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: Normal
X-Bugzilla-Assigned-To: dev@dpdk.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform
op_sys bug_status bug_severity priority component assigned_to reporter
target_milestone
Message-ID:
Content-Type: multipart/alternative; boundary=17345189590.753A.1227665
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
MIME-Version: 1.0
X-BeenThere: dev@dpdk.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: DPDK patches and discussions
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: dev-bounces@dpdk.org
--17345189590.753A.1227665
Date: Wed, 18 Dec 2024 11:49:19 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
https://bugs.dpdk.org/show_bug.cgi?id=3D1606
Bug ID: 1606
Summary: flow_filtering/flow_filtering_mismatch_rule: Some
mismatch rule packets match the rule
Product: DPDK
Version: 24.11
Hardware: x86
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: examples
Assignee: dev@dpdk.org
Reporter: linglix.chen@intel.com
Target Milestone: ---
Environment
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
DPDK version: a4f455560f version: 24.11-rc4
OS: Ubuntu24.04.1 LTS (Noble Numbat)/6.8.0-41-generic
Compiler: gcc version 13.2.0
Hardware platform: Intel(R) Xeon(R) Gold 6139 CPU @ 2.30GHz
NIC hardware: Ethernet Controller XXV710 for 25GbE SFP28 158b
NIC firmware:=20
FW: 9.50 0x8000f4e1 1.3682.0
Driver: i40e-2.26.8
Test Setup
Steps to reproduce
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1. bind ports to dpdk
./usertools/dpdk-devbind.py -b vfio-pci 0000:af:00.0 0000:af:00.1
2. build flow_filtering
meson configure -Dexamples=3Dflow_filtering x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc
3. launch flow_filtering=20
x86_64-native-linuxapp-gcc/examples/dpdk-flow_filtering -l 1 -n 4 -a
0000:af:00.0 -a 0000:af:00.1 -- --non-template
4. Send packets which mismatches the defined rule from tester=20
sendp([Ether(dst=3D'3c:fd:fe:cf:33:74')/IP(src=3D'0.0.0.0',
dst=3D'192.169.1.1')/Raw(load=3Db'xxxxxxxxxxxxxxxxxxxx'),Ether(dst=3D'3c:fd=
:fe:cf:33:74')/IP(src=3D'0.0.0.0',
dst=3D'193.168.1.1')/Raw(load=3Db'xxxxxxxxxxxxxxxxxxxx')],iface=3D"ens2f0",=
count=3D1,loop=3D0,inter=3D0.01)
5. Check the packets are not received by queue 1
Results:=20
=3D=3D=3D=3D=3D=3D=3D=3D
EAL: Detected CPU lcores: 72
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found
for that size
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
I40E_DRIVER: i40e_GLQF_reg_init(): i40e device 0000:af:00.0 changed global
register [0x002689a0]. original: 0x00000021, new: 0x00000029
:: warn: 2 ports detected, but we use only one: port 0
:: initializing port: 0
:: initializing port: 0 done
Flow created!!:
src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:CF:33:74 - queue=3D0x1
src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:CF:33:74 - queue=3D0x1
Expected Result:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:CF:33:74 - queue=3D0x0
src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:CF:33:74 - queue=3D0x0
bad commit:
commit 16158f34900075f2f30b879bf3708e54e07455f4
Author: Shani Peretz
Date: Mon Sep 30 22:53:21 2024 +0300
examples/flow_filtering: introduce use cases snippets
These code snippets demonstrate rule creation using
template and non-template APIs.
They include functions that enable developers to create rules.
The purpose of providing these snippets is to allow developers
to reuse them, thereby saving time and effort during the
implementation of flow rules.
The code snippets are categorized based on their usage and can be copie=
d,
paste and modified to suit any requirements.
The snippets provided here are kept up to date and are being compiled
along with the rest of the examples.
There is a skeleton that demonstrates rule creation
using both template and non template APIs.
Developers can change the functions in the skeleton to the corresponding
snippet functions with the appropriate suffix and create rules using the
snippets themselves for easy testing. Each snippet has the same functio=
ns
to implement the actions and patterns for the corresponding feature.
Signed-off-by: Shani Peretz
Acked-by: Stephen Hemminger
--=20
You are receiving this mail because:
You are the assignee for the bug.=
--17345189590.753A.1227665
Date: Wed, 18 Dec 2024 11:49:19 +0100
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://bugs.dpdk.org/
Auto-Submitted: auto-generated
X-Auto-Response-Suppress: All
flow_filtering/flow_filtering_mismatch_rule: Some mismatch ru=
le packets match the rule
Product
DPDK
Version
24.11
Hardware
x86
OS
All
Status
UNCONFIRMED
Severity
normal
Priority
Normal
Component
examples
Assignee
dev@dpdk.org
Reporter
linglix.chen@intel.com
Target Milestone
---
Environment
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
DPDK version: a4f455560f version: 24.11-rc4
OS: Ubuntu24.04.1 LTS (Noble Numbat)/6.8.0-41-generic
Compiler: gcc version 13.2.0
Hardware platform: Intel(R) Xeon(R) Gold 6139 CPU @ 2.30GHz
NIC hardware: Ethernet Controller XXV710 for 25GbE SFP28 158b
NIC firmware:=20
FW: 9.50 0x8000f4e1 1.3682.0
Driver: i40e-2.26.8
Test Setup
Steps to reproduce
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
1. bind ports to dpdk
./usertools/dpdk-devbind.py -b vfio-pci 0000:af:00.0 0000:af:00.1
2. build flow_filtering
meson configure -Dexamples=3Dflow_filtering x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc
3. launch flow_filtering=20
x86_64-native-linuxapp-gcc/examples/dpdk-flow_filtering -l 1 -n 4 -a
0000:af:00.0 -a 0000:af:00.1 -- --non-template
4. Send packets which mismatches the defined rule from tester=20
sendp([Ether(dst=3D'3c:fd:fe:cf:33:74')/IP(src=3D'0.0.0.0',
dst=3D'192.169.1.1')/Raw(load=3Db'xxxxxxxxxxxxxxxxxxxx'),Ether(dst=3D'3c:fd=
:fe:cf:33:74')/IP(src=3D'0.0.0.0',
dst=3D'193.168.1.1')/Raw(load=3Db'xxxxxxxxxxxxxxxxxxxx')],iface=3D"ens=
2f0",count=3D1,loop=3D0,inter=3D0.01)
5. Check the packets are not received by queue 1
Results:=20
=3D=3D=3D=3D=3D=3D=3D=3D
EAL: Detected CPU lcores: 72
EAL: Detected NUMA nodes: 2
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: 1024 hugepages of size 2097152 reserved, but no mounted hugetlbfs found
for that size
EAL: VFIO support initialized
EAL: Using IOMMU type 1 (Type 1)
I40E_DRIVER: i40e_GLQF_reg_init(): i40e device 0000:af:00.0 changed global
register [0x002689a0]. original: 0x00000021, new: 0x00000029
:: warn: 2 ports detected, but we use only one: port 0
:: initializing port: 0
:: initializing port: 0 done
Flow created!!:
src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:CF:33:74 - queue=3D0x1
src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:CF:33:74 - queue=3D0x1
Expected Result:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:CF:33:74 - queue=3D0x0
src=3D00:00:00:00:00:00 - dst=3D3C:FD:FE:CF:33:74 - queue=3D0x0
bad commit:
commit 16158f34900075f2f30b879bf3708e54e07455f4
Author: Shani Peretz <shperet=
z@nvidia.com>
Date: Mon Sep 30 22:53:21 2024 +0300
examples/flow_filtering: introduce use cases snippets
These code snippets demonstrate rule creation using
template and non-template APIs.
They include functions that enable developers to create rules.
The purpose of providing these snippets is to allow developers
to reuse them, thereby saving time and effort during the
implementation of flow rules.
The code snippets are categorized based on their usage and can be copie=
d,
paste and modified to suit any requirements.
The snippets provided here are kept up to date and are being compiled
along with the rest of the examples.
There is a skeleton that demonstrates rule creation
using both template and non template APIs.
Developers can change the functions in the skeleton to the corresponding
snippet functions with the appropriate suffix and create rules using the
snippets themselves for easy testing. Each snippet has the same functio=
ns
to implement the actions and patterns for the corresponding feature.
Signed-off-by: Shani Peretz <shperetz@nvidia.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>