Re: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug?

2017-02-08 Thread James Cape
2017 4:59:23 PM To: James Cape; users@dpdk.org Subject: Re: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug? Dear James, If it is only these two for-loops, then indeed the dfa[128] is never checked against the index, and it might be the problem

Re: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug?

2017-02-08 Thread Wu, Xiaoban
loops will never overlap. The confusion now is cleared off. Best wishes, Xiaoban From: James Cape Sent: Wednesday, February 8, 2017 9:18:43 AM To: Wu, Xiaoban; users@dpdk.org Subject: Re: [dpdk-users] A confusion caused by the inconsistency in the source code of a

Re: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug?

2017-02-08 Thread James Cape
ion now is cleared off. Best wishes, Xiaoban From: James Cape Sent: Wednesday, February 8, 2017 9:18:43 AM To: Wu, Xiaoban; users@dpdk.org Subject: Re: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug? [Disclaimer:

Re: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug?

2017-02-08 Thread Wu, Xiaoban
f. Best wishes, Xiaoban From: James Cape Sent: Wednesday, February 8, 2017 9:18:43 AM To: Wu, Xiaoban; users@dpdk.org Subject: Re: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug? [Disclaimer: I'm not at all familiar wit

Re: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug?

2017-02-08 Thread James Cape
ading.com<http://www.iextrading.com/> From: users on behalf of Wu, Xiaoban Sent: Wednesday, February 8, 2017 3:26:14 AM To: users@dpdk.org Subject: [dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug? Dear DPDK users, I have been

[dpdk-users] A confusion caused by the inconsistency in the source code of acl_gen.c. A possible bug?

2017-02-08 Thread Wu, Xiaoban
Dear DPDK users, I have been reading and studying the source codes of the librte_acl, since I am very curious to know how to algorithmically implement a fast lookup process. When I read the function acl_add_ptrs() in the acl_gen.c, there is one comment saying that /* * Rather than going from