From: "Krishna, Parameswaran" <Parameswaran.Krishna@dell.com>
To: Raslan Darawsheh <rasland@nvidia.com>, "dev@dpdk.org" <dev@dpdk.org>
Cc: Ori Kam <orika@nvidia.com>
Subject: RE: MLX5 : Having RTE_FLOW_ACTION_TYPE_PORT_ID flow entry and RTE_FLOW_ACTION_TYPE_QUEUE flow entry in same flow group
Date: Tue, 21 Mar 2023 09:42:52 +0000 [thread overview]
Message-ID: <MW5PR19MB5554DD9DE8CE4608D1B37E8B9D819@MW5PR19MB5554.namprd19.prod.outlook.com> (raw)
In-Reply-To: <BYAPR12MB3078A1B7B288FD4610ABFBFCCF809@BYAPR12MB3078.namprd12.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 5061 bytes --]
Hi Raslan Darawsheh,
Thanks for the details. It is very useful. Now I understand that the behavior observed is expected.
Best regards,
Parameswaran Krishnamurthy
Internal Use - Confidential
From: Raslan Darawsheh <rasland@nvidia.com>
Sent: Monday, March 20, 2023 9:32 PM
To: Krishna, Parameswaran; dev@dpdk.org
Cc: Ori Kam
Subject: RE: MLX5 : Having RTE_FLOW_ACTION_TYPE_PORT_ID flow entry and RTE_FLOW_ACTION_TYPE_QUEUE flow entry in same flow group
[EXTERNAL EMAIL]
Hi Krishna,
You have two types of tables:
1. FDB (those are the ones with the transfer attribute being set to 1)
2. NIC ( those are the ones with the ingress attribute only being set to 1)
When you do jump from one group to another on FDB it will not reach the NIC groups
It will jump to an FDB table (group 1) and in your case, it's empty (since you don't have any flow in that
group).
The second flow is on the NIC table which needs another root table flow to jump to it from group 0 on NIC.
So the order of execution for the tables would be like follows:
1. FDB: group 0 -> .... Group N
2. NIC: group 0 -> group N.
If a packet will miss on an FDB table it will be redirected to NIC table on group 0.
If a packet will miss on a NIC table group > 0 it will be dropped.
Kindest regards,
Raslan Darawsheh
From: Krishna, Parameswaran <Parameswaran.Krishna@dell.com<mailto:Parameswaran.Krishna@dell.com>>
Sent: Monday, March 20, 2023 1:31 PM
To: dev@dpdk.org<mailto:dev@dpdk.org>
Cc: Ori Kam <orika@nvidia.com<mailto:orika@nvidia.com>>
Subject: MLX5 : Having RTE_FLOW_ACTION_TYPE_PORT_ID flow entry and RTE_FLOW_ACTION_TYPE_QUEUE flow entry in same flow group
Hi Experts,
I'm using DPDK 21.08 with Mlx5 NIC. I'm trying to configure rte-flows with multiple groups. I'm observing that under certain circumstances, jump-group action from Group-0 to Group-1 is not working.
I installed a flow rule in group 0 with Attribute Transfer=1, matching src-mac ce:25:02:c2:a0:f2 and action to VNET_FLOW_ACTION_JUMP_GROUP to Group 1.This rule seem to have got installed in FDB table.
Then In Group1, I installed a flow rule with Attribute Transfer=0, matching src-mac ce:25:02:c2:a0:f2 and action RTE_FLOW_ACTION_TYPE_QUEUE to queue 0. For RTE_FLOW_ACTION_TYPE_QUEUE, looks like setting Transfer=0 is mandatory. Setting Transfer to 1 reported error "unsupported action QUEUE". This rule seem to have got installed in NIC_RX table.
Now, When I set packets from ce:25:02:c2:a0:f2, it hit the rule in Group 0, but did not hit the rule in Group 1. Looks like JUMP from FDB table to NIC_RX table is not happening.
When I installed the JUMP action rule in group 0 with Transfer=0, the RTE_FLOW_ACTION_TYPE_QUEUE rule entry in group 1 got hit successfully. With Transfer=0 set for both the rules, I guess both the rules got installed in NIC_RX table and the JUMP action worked fine.
But the problem is, now I'm unable to get a rule with action RTE_FLOW_ACTION_TYPE_PORT_ID in group1 get hit as RTE_FLOW_ACTION_TYPE_PORT_ID insists on setting Transfer=1 and this rule is getting installed in FDB table.
Is there any means by which I can have both RTE_FLOW_ACTION_TYPE_PORT_ID flow entry and RTE_FLOW_ACTION_TYPE_QUEUE flow entry in Group 1 and get them hit when jumped from Group 0 ?
Any input is highly appreciated. Thanks in advance.
root@server:/mlx_steering_dump/sws# python3 mlx_steering_dump_parser.py -p 87 -f /tmp/DpdkDump -t -port 0
domain 0x5702: type: FDB, gvmi: 0x4, support_sw_steering True, dev_name uverbs0, package_version 38.0, flags None, ste_buddies None, mh_buddies None, ptrn_buddies None
table 0xaaaad5ba9520: level: 1, type: FDB
matcher 0xaaaad5ada050: priority 2, rx e_anchor 0xf0200015, tx e_anchor 0xf0200017
mask: smac: 0xffffffffffff, cvlan_tag: 0x1, metadata_reg_c_0: 0xffff0000
rule 0xaaaad5699610
match: metadata_reg_c_0: 0x00030000, smac: ce:25:02:c2:a0:f2
action: FT devx id 0x15, dest_ft 0xaaaad5682c30 & CTR(counter), index 0x8011fd
table 0xaaaad5ba9110: level: 0, type: ROOT
table 0xaaaad5682c30: level: 11, type: FDB
domain 0x5700: type: NIC_RX, gvmi: 0x4, support_sw_steering True, dev_name uverbs0, package_version 38.0, flags None, ste_buddies None, mh_buddies None, ptrn_buddies None
table 0xaaaad550c550: level: 0, type: ROOT
table 0xaaaad56829a0: level: 10, type: NIC_RX
matcher 0xaaaad5af1010: priority 2, rx e_anchor 0xf010003a
mask: smac: 0xffffffffffff, cvlan_tag: 0x1, metadata_reg_c_0: 0xffff0000
rule 0xaaaad5682bb0
match: metadata_reg_c_0: 0x00030000, smac: ce:25:02:c2:a0:f2
action: CTR(counter), index 0x8011fe & DEVX_TIR, ICM addr 0x46f2800014b40
domain 0x5701: type: NIC_TX, gvmi: 0x4, support_sw_steering True, dev_name uverbs0, package_version 38.0, flags None, ste_buddies None, mh_buddies None, ptrn_buddies None
Best Regards,
Parameswaran Krishnamurthy
Internal Use - Confidential
[-- Attachment #2: Type: text/html, Size: 15942 bytes --]
prev parent reply other threads:[~2023-03-22 14:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-20 11:31 Krishna, Parameswaran
2023-03-20 16:02 ` Raslan Darawsheh
2023-03-21 9:42 ` Krishna, Parameswaran [this message]
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=MW5PR19MB5554DD9DE8CE4608D1B37E8B9D819@MW5PR19MB5554.namprd19.prod.outlook.com \
--to=parameswaran.krishna@dell.com \
--cc=dev@dpdk.org \
--cc=orika@nvidia.com \
--cc=rasland@nvidia.com \
/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).