#include <stdbool.h>
#include <stdint.h>
-#include <rte_eal.h>
#include <rte_eal_memconfig.h>
#include <rte_errno.h>
#include <rte_malloc.h>
#include <rte_mempool.h>
-#include <rte_rwlock.h>
#include <rte_string_fns.h>
#include <rte_tailq.h>
* is incremented in blocks of 8 (1 byte). This means the last
* 3 bits are irrelevant to what the index of ip should be.
*/
- index = (depth & (UINT8_MAX - 1)) / CHAR_BIT;
+ index = (depth & INT8_MAX) / CHAR_BIT;
/*
* msk is the bitmask used to extract the bit used to decide the
}
/*
- * Traverses on subtree and retreeves more specific routes
+ * Traverses on subtree and retrieves more specific routes
* for a given in args ip/depth prefix
* last = NULL means the first invocation
*/