examples/l3fwd: support config file for LPM/FIB
[dpdk.git] / examples / l3fwd / l3fwd.h
index 38ca191..002510b 100644 (file)
 #endif
 #define HASH_ENTRY_NUMBER_DEFAULT      16
 
+struct parm_cfg {
+       const char *rule_ipv4_name;
+       const char *rule_ipv6_name;
+};
+
 struct mbuf_table {
        uint16_t len;
        struct rte_mbuf *m_table[MAX_PKT_BURST];
@@ -96,6 +101,8 @@ extern xmm_t val_eth[RTE_MAX_ETHPORTS];
 
 extern struct lcore_conf lcore_conf[RTE_MAX_LCORE];
 
+extern struct parm_cfg parm_config;
+
 /* Send burst of packets on an output interface */
 static inline int
 send_burst(struct lcore_conf *qconf, uint16_t n, uint16_t port)