git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pci: merge mapping functions for linux and bsd
[dpdk.git]
/
lib
/
librte_acl
/
rte_acl.h
diff --git
a/lib/librte_acl/rte_acl.h
b/lib/librte_acl/rte_acl.h
index
8d9bbe5
..
bd8f892
100644
(file)
--- a/
lib/librte_acl/rte_acl.h
+++ b/
lib/librte_acl/rte_acl.h
@@
-122,6
+122,9
@@
enum {
#define RTE_ACL_INVALID_USERDATA 0
+#define RTE_ACL_MASKLEN_TO_BITMASK(v, s) \
+((v) == 0 ? (v) : (typeof(v))((uint64_t)-1 << ((s) * CHAR_BIT - (v))))
+
/**
* Miscellaneous data for ACL rule.
*/