Rte_flow function
Dmitry Kozlyuk
dmitry.kozliuk at gmail.com
Mon May 22 16:05:50 CEST 2023
2023-05-22 16:35 (UTC+0300), Aisenur Yoldaş:
> 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
>
> [...]
>
> What is the correct way to use this function in order to reach all the flows of the port.
There is no API to query the list of flow rules of a port.
rte_flow_query() is to query the state a specific single flow rule.
For example, if the action list on flow rule creation included COUNT,
then rte_flow_query() would allow to get the counter value
(how many packets have hit the rule).
Your action list doesn't have a COUNT action (or any stateful action)
so there is nothing to query.
More information about the users
mailing list