Hi
> -Original Message-
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Rapelly, Varun
> Sent: Wednesday, January 28, 2015 9:07 AM
> To: dev at dpdk.org
> Subject: [dpdk-dev] ACL trie insertion and search
>
> Hi,
>
> We were converting the acl rule data, from host to network byte order, [by
> mistake] while inserting into trie. And while searching we
> are not converting the search data to n/w byte order.
> With the above also rules are matching, except few scenarios.
>
> After correcting the above mistake, all rules are matching perfectly fine.
>
> I believe the above[converting while insertion] should also work for all
> rules. Please clarify the above.
Yes, that's correct.
rte_acl_add_rules() expects all fields to be in host byte order, while
rte_acl_classify()expects all fields in input data buffers to be in network
byte order.
As mentioned in comments in rte_acl.h.
Konstantin
>
> Regards,
> Varun