[dpdk-dev] ACL lookup doesn't work for some schemes

2015-02-16 Thread Ananyev, Konstantin
> -Original Message- > From: Markovic, Stevan [mailto:smarkovi at akamai.com] > Sent: Monday, February 16, 2015 3:22 PM > To: Ananyev, Konstantin; yuzhichang_scl at hotmail.com; dev at dpdk.org > Subject: Re: [dpdk-dev] ACL lookup doesn't work for some schemes > &

[dpdk-dev] ACL lookup doesn't work for some schemes

2015-02-16 Thread Stevan Markovic
Hi, On Mon, Feb 16, 2015 at 4:56 AM, Ananyev, Konstantin < konstantin.ananyev at intel.com> wrote: > Yes, right now, libtre_acl to work correctly first field has to be 1B long > and all subsequent grouped into sets of 4 consecutive bytes. > I thought we have it documented into our PG, ACL section

[dpdk-dev] ACL lookup doesn't work for some schemes

2015-02-16 Thread Ananyev, Konstantin
Hi > -Original Message- > From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of ??? > Sent: Sunday, February 15, 2015 9:19 AM > To: dev at dpdk.org > Subject: [dpdk-dev] ACL lookup doesn't work for some schemes > > Hi,I noticed that ACL lookup doesn

[dpdk-dev] ACL lookup doesn't work for some schemes

2015-02-15 Thread 志昌余
I tested against DPDK 1.7.0, 1.8.0 and trunk(?ed2547b6).? > From: yuzhichang_scl at hotmail.com > To: dev at dpdk.org > Subject: RE: ACL lookup doesn't work for some schemes > Date: Sun, 15 Feb 2015 17:23:53 +0800 > > Sorry I forgot to attach the sample code i

[dpdk-dev] ACL lookup doesn't work for some schemes

2015-02-15 Thread 志昌余
Sorry I forgot to attach the sample code in previous mail. See the attached. From: yuzhichang_...@hotmail.com To: dev at dpdk.org Subject: ACL lookup doesn't work for some schemes Date: Sun, 15 Feb 2015 17:18:55 +0800 Hi,I noticed that ACL lookup doesn't work for some schemes.1. If the fir

[dpdk-dev] ACL lookup doesn't work for some schemes

2015-02-15 Thread 志昌余
Hi,I noticed that ACL lookup doesn't work for some schemes.1. If the first field is not uint8_t, even all fields are wildcard, lookup doesn't find the matching rule. See acl_8last.c.2. I prepended a uint8_t field, keep other fields be wildcard, lookup returns the correct result. See acl_8las