DPDK usage discussions
 help / color / mirror / Atom feed
From: Antoine POLLENUS <a.pollenus@deltacast.tv>
To: "users@dpdk.org" <users@dpdk.org>
Subject: [MLX5, Windows] Flows rules are limited
Date: Tue, 27 Sep 2022 07:34:28 +0000	[thread overview]
Message-ID: <489942490e214cd2bd06dee329622bdf@deltacast.tv> (raw)

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

Hello,

I'm trying to do a reception using DPDK windows using a connectX6DX. I need to redirect some network traffic into a specific queue.

I have set the DevxEnabled to true and the DevxFsRules to 0xffffff

When I try to setup the flow using the testpmd launched with those commands:

./dpdk-testpmd -l 2-3 -n 4 -a 5e:00.0 --log-level=8 --log-level=pmd.common.mlx5:8 --log-level=pmd.net.mlx5:8  -- --socket-num=0 --burst=64 --txd=4096 --rxd=1024 --mbcache=512 --rxq=1 --txq=0 --nb-cores=1 --txpkts=1500 -i --forward-mode=rxonly  --flow-isolate-all

testpmd> flow create 0 ingress pattern eth / ipv4 / end actions queue index 0 / end
mlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARD
mlx5_net: port 0 group=0 table=0
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list was created.
mlx5_common: mlx5 list Mellanox ConnectX-6 Dx Adapter_ entry 00000196D5E84990 new: 1.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 00000196EE1E8E40 new: 1.
mlx5_common: mlx5 list hrxq entry 00000196EE1E6300 new: 1.
Flow rule #0 created


I see the flow is created correctly.

but when trying to filter on the destination ip I get an error:

testpmd> flow create 0 ingress pattern eth / ipv4 dst is 10.10.1.185 / end actions queue index 0 / end
mlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARD
mlx5_net: port 0 group=0 table=0
mlx5_common: mlx5 list Mellanox ConnectX-6 Dx Adapter_ entry 00000196D5E849E8 ref: 2.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.000196D5E84990 new: 1.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 00000196EE1E5E80 new: 1.
mlx5_common: mlx5 list hrxq entry 00000196EE1E6380 ref: 2.00000196EE1E8E40 new: 1.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 00000196EE1E5E80 removed.
port_flow_complain(): Caught PMD error type 1 (cause unspecified): hardware refuses to create flow: Invalid argument

I also tried to filter on the source Ethernet MAC and I get the same error but on the destination MAC it works ?
testpmd> flow create 0 ingress pattern eth dst is 10:10:10:10:10:10 / ipv4 / end actions queue index 0 / end
mlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARD
mlx5_net: port 0 group=0 table=0
mlx5_common: mlx5 list Mellanox ConnectX-6 Dx Adapter_ entry 00000196D5E849E8 ref: 2.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 00000196EE1E5E80 new: 1.
mlx5_common: mlx5 list hrxq entry 00000196EE1E6380 ref: 2.
Flow rule #1 created

testpmd> flow create 0 ingress pattern eth src is 10:10:10:10:10:10 / ipv4 / end actions queue index 0 / end
mlx5_net: port 0 group=0 transfer=0 external=1 fdb_def_rule=0 translate=STANDARD
mlx5_net: port 0 group=0 table=0
mlx5_common: mlx5 list Mellanox ConnectX-6 Dx Adapter_ entry 00000196D5E849E8 ref: 2.
mlx5_net: table_level 0 table_id 0 tunnel 0 group 0 registered.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 00000196EE1E5E80 new: 1.
mlx5_common: mlx5 list hrxq entry 00000196EE1E6380 ref: 2.
mlx5_common: mlx5 list NIC_ingress_0_0_matcher_list entry 00000196EE1E5E80 removed.
port_flow_complain(): Caught PMD error type 1 (cause unspecified): hardware refuses to create flow: Invalid argument


Is that a limitation of the windows version or am I doing something wrong ?

regards,

Antoine Pollenus


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

                 reply	other threads:[~2022-09-27  7:34 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=489942490e214cd2bd06dee329622bdf@deltacast.tv \
    --to=a.pollenus@deltacast.tv \
    --cc=users@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).