acl-plugin: match index set to first portrange element if non-first portrange matches... 83/7983/5
authorAndrew Yourtchenko <ayourtch@gmail.com>
Thu, 10 Aug 2017 15:02:58 +0000 (17:02 +0200)
committerNeale Ranns <nranns@cisco.com>
Thu, 10 Aug 2017 17:58:32 +0000 (17:58 +0000)
commitfb088f0a201270e949469c915c529d75ad13353e
tree61262efbfde698b1bb59a9d58e390201964f04b5
parent1de7d7044434196610190011ebb431f054701259
acl-plugin: match index set to first portrange element if non-first portrange matches on the same hash key (VPP-938)

Multiple portranges that land on the same hash key will always report the match
on the first portrange - even when the subsequent portranges have matched.
Test escape, so make a corresponding test case and fix the code so it passes.

Change-Id: Idbeb8a122252ead2468f5f9dbaf72cf0e8bb78f1
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/hash_lookup.c
test/test_acl_plugin.py