pipeline: add drop port for each pipeline
[dpdk.git] / lib / lpm / rte_lpm6.c
index 37baabb..73768fc 100644 (file)
@@ -80,7 +80,7 @@ struct rte_lpm6_rule {
 /** Rules tbl entry key. */
 struct rte_lpm6_rule_key {
        uint8_t ip[RTE_LPM6_IPV6_ADDR_SIZE]; /**< Rule IP address. */
-       uint8_t depth; /**< Rule depth. */
+       uint32_t depth; /**< Rule depth. */
 };
 
 /* Header of tbl8 */
@@ -259,6 +259,8 @@ rte_lpm6_create(const char *name, int socket_id,
        lpm_list = RTE_TAILQ_CAST(rte_lpm6_tailq.head, rte_lpm6_list);
 
        RTE_BUILD_BUG_ON(sizeof(struct rte_lpm6_tbl_entry) != sizeof(uint32_t));
+       RTE_BUILD_BUG_ON(sizeof(struct rte_lpm6_rule_key) %
+               sizeof(uint32_t) != 0);
 
        /* Check user arguments. */
        if ((name == NULL) || (socket_id < -1) || (config == NULL) ||