lib: fix cache alignment of structures
[dpdk.git] / lib / librte_table / rte_table_lpm.c
index 59f87bb..64c684d 100644 (file)
@@ -36,6 +36,7 @@
 
 #include <rte_common.h>
 #include <rte_mbuf.h>
+#include <rte_memory.h>
 #include <rte_malloc.h>
 #include <rte_byteorder.h>
 #include <rte_log.h>
@@ -185,7 +186,7 @@ rte_table_lpm_entry_add(
        struct rte_table_lpm_key *ip_prefix = (struct rte_table_lpm_key *) key;
        uint32_t nht_pos, nht_pos0_valid;
        int status;
-       uint8_t nht_pos0;
+       uint8_t nht_pos0 = 0;
 
        /* Check input parameters */
        if (lpm == NULL) {