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
efd: fix build by removing dependency to libmath
[dpdk.git]
/
lib
/
librte_efd
/
rte_efd.c
diff --git
a/lib/librte_efd/rte_efd.c
b/lib/librte_efd/rte_efd.c
index
68e6dab
..
f601d62
100644
(file)
--- a/
lib/librte_efd/rte_efd.c
+++ b/
lib/librte_efd/rte_efd.c
@@
-36,7
+36,6
@@
#include <inttypes.h>
#include <errno.h>
#include <stdarg.h>
#include <inttypes.h>
#include <errno.h>
#include <stdarg.h>
-#include <math.h>
#include <sys/queue.h>
#include <rte_log.h>
#include <sys/queue.h>
#include <rte_log.h>
@@
-557,7
+556,7
@@
rte_efd_create(const char *name, uint32_t max_num_rules, uint32_t key_len,
num_chunks = rte_align32pow2((max_num_rules /
EFD_TARGET_CHUNK_NUM_RULES) + 1);
num_chunks = rte_align32pow2((max_num_rules /
EFD_TARGET_CHUNK_NUM_RULES) + 1);
- num_chunks_shift =
log
2(num_chunks);
+ num_chunks_shift =
rte_bsf3
2(num_chunks);
rte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);
rte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);