acl-plugin: defer the ACL plugin user module registration with ACL lookup until it... 64/11364/2
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 26 Mar 2018 10:30:47 +0000 (12:30 +0200)
committerOle Trøan <otroan@employees.org>
Mon, 26 Mar 2018 12:55:57 +0000 (12:55 +0000)
commite1e995db55be2fe1cb371fb6acd86ea9144da914
treecdd74a8a8214e84a9ade88b7a97bb113cafe8efa
parent06bc26077c59c26afb8a6ab44d274e98efbbba95
acl-plugin: defer the ACL plugin user module registration with ACL lookup until it is needed

Registering ACL plugin user module within the "ACL as a service" infra during the plugin init
causes an unnecesary ACL heap allocation and prevents the changing of the ACL heap size
from the startup config.

Defer this registration until just before it is needed - i.e. when applying an ACL to
an interface.

Change-Id: Ied79967596b3b76d6630f136c998e59f8cdad962
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/plugins/acl/acl.c