acl: add API call for setting the toggle to select between linear and bihash-based... 90/33490/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 13 Aug 2021 13:59:50 +0000 (13:59 +0000)
committerOle Tr�an <otroan@employees.org>
Thu, 19 Aug 2021 08:42:00 +0000 (08:42 +0000)
commit1d342b9c8f515eabfb20fe8856ba311769870711
tree8ede30a7dbad94dbb060a95cb58c37fb677edc47
parent38071b1331b44746679997f6e66081c4936d087c
acl: add API call for setting the toggle to select between linear and bihash-based lookups

In some cases (ACL of a few lines long with a lot of different subnet masks), linear lookup
may be more efficient than the hash-based lookup. Expose the API to allow the control plane
to choose what lookup algorithm to use.

Type: improvement
Change-Id: I540dd1b4ce63c5106a556d550f911f3a578b33e0
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.api
src/plugins/acl/acl.c
src/plugins/acl/acl_test.c