DPDK patches and discussions
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <bug-1606-3@http.bugs.dpdk.org/> (raw)

[-- Attachment #1: Type: text/plain, Size: 3984 bytes --]

https://bugs.dpdk.org/show_bug.cgi?id=1606

            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
===========
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: 
  FW: 9.50 0x8000f4e1 1.3682.0
  Driver: i40e-2.26.8

Test Setup
Steps to reproduce
==================
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=flow_filtering x86_64-native-linuxapp-gcc
ninja -C x86_64-native-linuxapp-gcc

3. launch flow_filtering 
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 
sendp([Ether(dst='3c:fd:fe:cf:33:74')/IP(src='0.0.0.0',
dst='192.169.1.1')/Raw(load=b'xxxxxxxxxxxxxxxxxxxx'),Ether(dst='3c:fd:fe:cf:33:74')/IP(src='0.0.0.0',
dst='193.168.1.1')/Raw(load=b'xxxxxxxxxxxxxxxxxxxx')],iface="ens2f0",count=1,loop=0,inter=0.01)

5. Check the packets are not received by queue 1

Results: 
========
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=00:00:00:00:00:00 - dst=3C:FD:FE:CF:33:74 - queue=0x1
src=00:00:00:00:00:00 - dst=3C:FD:FE:CF:33:74 - queue=0x1

Expected Result:
================
src=00:00:00:00:00:00 - dst=3C:FD:FE:CF:33:74 - queue=0x0
src=00:00:00:00:00:00 - dst=3C:FD:FE:CF:33:74 - queue=0x0

bad commit:
commit 16158f34900075f2f30b879bf3708e54e07455f4
Author: Shani Peretz <shperetz@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 copied,
    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 functions
    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>

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #2: Type: text/html, Size: 6063 bytes --]

                 reply	other threads:[~2024-12-18 10:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-1606-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).