acl: introduce a macro for bitmask conversion
authorKonstantin Ananyev <konstantin.ananyev@intel.com>
Mon, 8 Jun 2015 10:41:27 +0000 (11:41 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 18 Jun 2015 16:08:34 +0000 (18:08 +0200)
commitcd40cd919540489e9da57863ac88136a89ac8759
tree74eace9933b801de224ecb3e0e6da213db36519a
parent4a6ce751ace3708ed33248582cf24f808933e957
acl: introduce a macro for bitmask conversion

Introduce new RTE_ACL_MASKLEN_TO_BITMASK macro, that will be used
in several places inside librte_acl and it's UT.
Simplify and cleanup build_trie() code a bit.

Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
lib/librte_acl/acl_bld.c
lib/librte_acl/rte_acl.h