X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fl3fwd%2Fmain.c;h=792894f7423afef8ed3559ef9453254f17ce0b41;hb=d9a2009a81089093645fea2e04b51dd37edf3e6f;hp=0e330396d35bc235f94fe14aba7ed2e281cfac45;hpb=268888b5b0206aaa5d5212e2b35ea91b717e60b9;p=dpdk.git diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c index 0e330396d3..792894f742 100644 --- a/examples/l3fwd/main.c +++ b/examples/l3fwd/main.c @@ -112,7 +112,7 @@ volatile bool force_quit; uint64_t dest_eth_addr[RTE_MAX_ETHPORTS]; struct ether_addr ports_eth_addr[RTE_MAX_ETHPORTS]; -__m128i val_eth[RTE_MAX_ETHPORTS]; +xmm_t val_eth[RTE_MAX_ETHPORTS]; /* mask of enabled ports */ uint32_t enabled_port_mask; @@ -791,6 +791,7 @@ main(int argc, char **argv) unsigned lcore_id; uint32_t n_tx_queue, nb_lcores; uint8_t portid, nb_rx_queue, queue, socketid; + uint8_t nb_tx_port; /* init EAL */ ret = rte_eal_init(argc, argv); @@ -830,6 +831,7 @@ main(int argc, char **argv) rte_exit(EXIT_FAILURE, "check_port_config failed\n"); nb_lcores = rte_lcore_count(); + nb_tx_port = 0; /* Setup function pointers for lookup method. */ setup_l3fwd_lookup_tables(); @@ -906,8 +908,13 @@ main(int argc, char **argv) qconf = &lcore_conf[lcore_id]; qconf->tx_queue_id[portid] = queueid; queueid++; + + qconf->n_tx_port = nb_tx_port; + qconf->tx_port_id[qconf->n_tx_port] = portid; } printf("\n"); + + nb_tx_port++; } for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id++) {