X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fntb%2Fntb_fwd.c;h=81964d0308f440cbab3c8367e51b7c00428168d3;hb=3cec73fabb2c7d98d2ac4bda480508412f5cfb96;hp=54b7f08964067d4f13368d787ac949ac14fd2a92;hpb=cb056611a8ed9ab9024f3b91bf26e97255194514;p=dpdk.git diff --git a/examples/ntb/ntb_fwd.c b/examples/ntb/ntb_fwd.c index 54b7f08964..81964d0308 100644 --- a/examples/ntb/ntb_fwd.c +++ b/examples/ntb/ntb_fwd.c @@ -89,17 +89,17 @@ static uint16_t pkt_burst = NTB_DFLT_PKT_BURST; static struct rte_eth_conf eth_port_conf = { .rxmode = { - .mq_mode = ETH_MQ_RX_RSS, + .mq_mode = RTE_ETH_MQ_RX_RSS, .split_hdr_size = 0, }, .rx_adv_conf = { .rss_conf = { .rss_key = NULL, - .rss_hf = ETH_RSS_IP, + .rss_hf = RTE_ETH_RSS_IP, }, }, .txmode = { - .mq_mode = ETH_MQ_TX_NONE, + .mq_mode = RTE_ETH_MQ_TX_NONE, }, }; @@ -696,7 +696,7 @@ assign_stream_to_lcores(void) break; } - /* Print packet forwading config. */ + /* Print packet forwarding config. */ RTE_LCORE_FOREACH_WORKER(lcore_id) { conf = &fwd_lcore_conf[lcore_id]; @@ -1498,5 +1498,8 @@ main(int argc, char **argv) start_pkt_fwd(); } + /* clean up the EAL */ + rte_eal_cleanup(); + return 0; }