summaryrefslogtreecommitdiff
path: root/app/test-acl
diff options
context:
space:
mode:
authorKonstantin Ananyev <konstantin.ananyev@intel.com>2015-06-08 11:41:24 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-06-18 17:59:18 +0200
commit12c4e86969f92b2de5aade476261edcf3acaf693 (patch)
tree95265234af722c0c908ec0d7f4ad545f98d21839 /app/test-acl
parentfaea1ce70c77ee5ec95fe7c2fb79265fd5b3dcb1 (diff)
downloaddpdk-12c4e86969f92b2de5aade476261edcf3acaf693.zip
dpdk-12c4e86969f92b2de5aade476261edcf3acaf693.tar.gz
dpdk-12c4e86969f92b2de5aade476261edcf3acaf693.tar.xz
acl: remove redundant macro
Use global RTE_LEN2MASK macro, instead of local LEN2MASK. Signed-off-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
Diffstat (limited to 'app/test-acl')
-rw-r--r--app/test-acl/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/test-acl/main.c b/app/test-acl/main.c
index 524c43a..be3d773 100644
--- a/app/test-acl/main.c
+++ b/app/test-acl/main.c
@@ -739,7 +739,8 @@ add_cb_rules(FILE *f, struct rte_acl_ctx *ctx)
return rc;
}
- v.data.category_mask = LEN2MASK(RTE_ACL_MAX_CATEGORIES);
+ v.data.category_mask = RTE_LEN2MASK(RTE_ACL_MAX_CATEGORIES,
+ typeof(v.data.category_mask));
v.data.priority = RTE_ACL_MAX_PRIORITY - n;
v.data.userdata = n;