[mlx5] rte_flow_query returns -ENOTSUP when querying count from main lcore

Burkay Kınık burkay.kinik at b-ulltech.com
Tue Mar 3 16:40:50 CET 2026


Hi Dmitry,
Thank you for your reply. I changed it and it still doesn't work unfortunately. I confirmed that the way I initialize and use the structs and query the flows are exactly the same as the *ipsec-secgw* example. Do you have any more ideas on this issue?

Best Regards,
Burkay KINIK

________________________________
From: Dmitry Kozlyuk <dmitry.kozliuk at gmail.com>
Sent: Monday, March 2, 2026 6:28 PM
To: Burkay Kınık <burkay.kinik at b-ulltech.com>; users at dpdk.org <users at dpdk.org>
Subject: Re: [mlx5] rte_flow_query returns -ENOTSUP when querying count from main lcore

Dikkat: Bu e-posta kurum dışından gelmektedir. Lütfen gönderenin kimliğini doğrulamadan yanıt vermeyin, ekleri açmayın veya kişisel bilgi paylaşmayın.



Hi Burkay,

I noticed that you don't zero-initialize all the fields,
e.g. rte_flow_attr::group is not set in your code
either as flow_attr = {0} or as flow.attr_group = 0.
If this is also the case when querying, then you might
call rte_flow_query() with (partially) uninitialized arguments
and get the weird results that you have described.
You must initialize the structs fully
both when creating the flow and when querying the counter.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20260303/b6b7c6d2/attachment.htm>


More information about the users mailing list