]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_table/rte_table_lpm.c
lib: fix cache alignment of structures
[dpdk.git] / lib / librte_table / rte_table_lpm.c
index 59f87bb787734dd1dae8660ddc3e5a24ed304e0c..64c684d03f26d154b7b073cc04c437fd24df8afb 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) {