examples: minor changes

Signed-off-by: Intel
This commit is contained in:
Intel 2013-09-18 12:00:00 +02:00 committed by Thomas Monjalon
parent 78a94f7458
commit 9787d22f34
3 changed files with 4 additions and 4 deletions

View File

@ -571,7 +571,7 @@ MAIN(int argc, char **argv)
int ret; int ret;
unsigned nb_ports, i; unsigned nb_ports, i;
uint16_t queueid = 0; uint16_t queueid = 0;
unsigned lcore_id = 0, rx_lcore_id = 0;; unsigned lcore_id = 0, rx_lcore_id = 0;
uint32_t n_tx_queue, nb_lcores; uint32_t n_tx_queue, nb_lcores;
uint8_t portid; uint8_t portid;

View File

@ -714,7 +714,7 @@ MAIN(int argc, char **argv)
struct lcore_queue_conf *qconf; struct lcore_queue_conf *qconf;
int ret; int ret;
uint16_t queueid; uint16_t queueid;
unsigned lcore_id = 0, rx_lcore_id = 0;; unsigned lcore_id = 0, rx_lcore_id = 0;
uint32_t n_tx_queue, nb_lcores; uint32_t n_tx_queue, nb_lcores;
uint8_t portid; uint8_t portid;

View File

@ -226,7 +226,7 @@ print_stats(void)
printf("\n====================================================\n"); printf("\n====================================================\n");
} }
/* Send the packet on an output interface */ /* Send the burst of packets on an output interface */
static int static int
l2fwd_send_burst(struct lcore_queue_conf *qconf, unsigned n, uint8_t port) l2fwd_send_burst(struct lcore_queue_conf *qconf, unsigned n, uint8_t port)
{ {
@ -248,7 +248,7 @@ l2fwd_send_burst(struct lcore_queue_conf *qconf, unsigned n, uint8_t port)
return 0; return 0;
} }
/* Send the packet on an output interface */ /* Enqueue packets for TX and prepare them to be sent */
static int static int
l2fwd_send_packet(struct rte_mbuf *m, uint8_t port) l2fwd_send_packet(struct rte_mbuf *m, uint8_t port)
{ {