2015-05-22 18:48, Konstantin Ananyev:
> As now subtree_id is not used acl_merge_trie() any more,
> there is no point to calculate and maintain that information.
>
> Signed-off-by: Konstantin Ananyev <konstantin.ananyev at intel.com>
There is an error with GCC 5.1:
lib/librte_acl/acl_bld.c:1324:22: error: array subscript is above array bounds
[-Werror=array-bounds]
end->mrt->results[m] = rule->f->data.userdata;
^
lib/librte_acl/acl_bld.c:1327:22: error: array subscript is above array bounds
[-Werror=array-bounds]
end->mrt->results[m] = 0;
^
This kind of patch fixes it:
- for (m = 0; m < context->cfg.num_categories; m++) {
+ for (m = 0; m < RTE_MIN(context->cfg.num_categories,
RTE_DIM(end->mrt->results)); m++) {