acl-plugin: VPP-1230: fix the "undefined symbol" error for acl_main when using the... 32/11632/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 9 Apr 2018 19:08:33 +0000 (21:08 +0200)
committerChris Luke <chris_luke@comcast.com>
Tue, 10 Apr 2018 12:45:57 +0000 (12:45 +0000)
commit1286a15a6e60f80b0e1b349f876de8fa38c71368
tree071312c6d7c9d3c25f631c71e29426f97605c182
parente5cbccf35f4d230afafa633abbc88e64ef33d758
acl-plugin: VPP-1230: fix the "undefined symbol" error for acl_main when using the inline functions

The acl_main struct, which is defined in the acl_plugin, is not visible when
the ACL plugin inline code is being compiled within the context of other plugins.
Fix that by using the global pointer variable, which exists in both the ACL plugin
context and is set in the context of the external plugins using ACL plugin.

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