DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] ACL trie insertion and search
@ 2015-01-28  9:07 Rapelly, Varun
  2015-01-28 11:11 ` Ananyev, Konstantin
  0 siblings, 1 reply; 2+ messages in thread
From: Rapelly, Varun @ 2015-01-28  9:07 UTC (permalink / raw)
  To: dev

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.

Regards,
Varun

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] ACL trie insertion and search
  2015-01-28  9:07 [dpdk-dev] ACL trie insertion and search Rapelly, Varun
@ 2015-01-28 11:11 ` Ananyev, Konstantin
  0 siblings, 0 replies; 2+ messages in thread
From: Ananyev, Konstantin @ 2015-01-28 11:11 UTC (permalink / raw)
  To: Rapelly, Varun, dev

Hi

> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Rapelly, Varun
> Sent: Wednesday, January 28, 2015 9:07 AM
> To: dev@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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-28 11:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-28  9:07 [dpdk-dev] ACL trie insertion and search Rapelly, Varun
2015-01-28 11:11 ` Ananyev, Konstantin

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).