From: "Aisenur Yoldaş" <aisenur.yoldas@b-ulltech.com>
To: "" <users@dpdk.org>
Subject: Rte_flow function
Date: Mon, 22 May 2023 16:35:01 +0300 (TRT) [thread overview]
Message-ID: <1989053041.4731986.1684762501124.JavaMail.zimbra@b-ulltech.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1882 bytes --]
Hi,
I am trying to use the rte_flow_query function to find all the flow rules in a port, but when it comes the action parameter i cannot find the right way because when I use count action like in the ipsec example
struct rte_flow_action action;
action.type = RTE_FLOW_ACTION_TYPE_COUNT;
rte_errno = 0;
ret = rte_flow_query(port_id,flow_local,action,&count_query,&error);
if (ret) {
std::cout<<error.message<<error.type<<std::endl;
printf("Error meaning:%d%d%s\n",ret,rte_errno,rte_strerror(-ret));
}
it gives me "Error meaning:-22 22 Invalid argument".
And when i try to use my original flow rule
struct rte_flow_action action[4];
structrte_flow_action_rssrss;
structrte_flow_action_markmark;
staticuint8_thash_key[RSS_HASH_KEY_LENGTH] = {
0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A, 0x6D, 0x5A,
};
rss.key = hash_key;
rss.key_len = RSS_HASH_KEY_LENGTH;
rss.func = RTE_ETH_HASH_FUNCTION_DEFAULT;
rss.types = RTE_ETH_RSS_IP;
rss.queue_num = 1;
rss.level = 0;
mark.id = 0;
action[0].type = RTE_FLOW_ACTION_TYPE_MARK;
action[0].conf = &mark;
action[1].type = RTE_FLOW_ACTION_TYPE_RSS;
action[1].conf = &rss;
action[2].type = RTE_FLOW_ACTION_TYPE_END;
rte_errno = 0;
ret = rte_flow_query(port_id,flow_local,action,&count_query,&error);
if (ret) {
std::cout<<error.message<<error.type<<std::endl;
printf("Error meaning:%d%d%s\n",ret,rte_errno,rte_strerror(-ret));
}
it gives me "Error meaning:-95 95 Operation not supported".
What is the correct way to use this function in order to reach all the flows of the port.
Thanks,
Aisenur Yoldas
[-- Attachment #2.1: Type: text/html, Size: 2546 bytes --]
next reply other threads:[~2023-05-22 13:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-22 13:35 Aisenur Yoldaş [this message]
2023-05-22 14:05 ` Dmitry Kozlyuk
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=1989053041.4731986.1684762501124.JavaMail.zimbra@b-ulltech.com \
--to=aisenur.yoldas@b-ulltech.com \
--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).