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
lpm: add scalar version of lookupx4
[dpdk.git]
/
lib
/
lpm
/
rte_lpm.h
diff --git
a/lib/lpm/rte_lpm.h
b/lib/lpm/rte_lpm.h
index
5eb14c1
..
4f38864
100644
(file)
--- a/
lib/lpm/rte_lpm.h
+++ b/
lib/lpm/rte_lpm.h
@@
-12,13
+12,9
@@
*/
#include <errno.h>
*/
#include <errno.h>
-#include <sys/queue.h>
#include <stdint.h>
#include <stdint.h>
-#include <stdlib.h>
#include <rte_branch_prediction.h>
#include <rte_byteorder.h>
#include <rte_branch_prediction.h>
#include <rte_byteorder.h>
-#include <rte_config.h>
-#include <rte_memory.h>
#include <rte_common.h>
#include <rte_vect.h>
#include <rte_rcu_qsbr.h>
#include <rte_common.h>
#include <rte_vect.h>
#include <rte_rcu_qsbr.h>
@@
-283,7
+279,7
@@
rte_lpm_delete_all(struct rte_lpm *lpm);
* -EINVAL for incorrect arguments, -ENOENT on lookup miss, 0 on lookup hit
*/
static inline int
* -EINVAL for incorrect arguments, -ENOENT on lookup miss, 0 on lookup hit
*/
static inline int
-rte_lpm_lookup(struct rte_lpm *lpm, uint32_t ip, uint32_t *next_hop)
+rte_lpm_lookup(
const
struct rte_lpm *lpm, uint32_t ip, uint32_t *next_hop)
{
unsigned tbl24_index = (ip >> 8);
uint32_t tbl_entry;
{
unsigned tbl24_index = (ip >> 8);
uint32_t tbl_entry;
@@
-409,8
+405,10
@@
rte_lpm_lookupx4(const struct rte_lpm *lpm, xmm_t ip, uint32_t hop[4],
#endif
#elif defined(RTE_ARCH_PPC_64)
#include "rte_lpm_altivec.h"
#endif
#elif defined(RTE_ARCH_PPC_64)
#include "rte_lpm_altivec.h"
-#el
se
+#el
if defined(RTE_ARCH_X86)
#include "rte_lpm_sse.h"
#include "rte_lpm_sse.h"
+#else
+#include "rte_lpm_scalar.h"
#endif
#ifdef __cplusplus
#endif
#ifdef __cplusplus