summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIntel <intel.com>2013-09-18 12:00:00 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-10-09 16:16:16 +0200
commit9787d22f34c258ee78a038c58d78a8373d2012e0 (patch)
tree5ef224f04fb860c7c93680a1ed4d7f2cf9e7d8e9
parent78a94f74581965602d1e4645d52119c06d319998 (diff)
downloaddpdk-9787d22f34c258ee78a038c58d78a8373d2012e0.zip
dpdk-9787d22f34c258ee78a038c58d78a8373d2012e0.tar.gz
dpdk-9787d22f34c258ee78a038c58d78a8373d2012e0.tar.xz
examples: minor changes
Signed-off-by: Intel
-rw-r--r--examples/ipv4_frag/main.c2
-rw-r--r--examples/ipv4_multicast/main.c2
-rw-r--r--examples/l2fwd/main.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/ipv4_frag/main.c b/examples/ipv4_frag/main.c
index 3072b61..3d63486 100644
--- a/examples/ipv4_frag/main.c
+++ b/examples/ipv4_frag/main.c
@@ -571,7 +571,7 @@ MAIN(int argc, char **argv)
int ret;
unsigned nb_ports, i;
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;
uint8_t portid;
diff --git a/examples/ipv4_multicast/main.c b/examples/ipv4_multicast/main.c
index 8f61af0..ecdd058 100644
--- a/examples/ipv4_multicast/main.c
+++ b/examples/ipv4_multicast/main.c
@@ -714,7 +714,7 @@ MAIN(int argc, char **argv)
struct lcore_queue_conf *qconf;
int ret;
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;
uint8_t portid;
diff --git a/examples/l2fwd/main.c b/examples/l2fwd/main.c
index 07aaab8..05ef330 100644
--- a/examples/l2fwd/main.c
+++ b/examples/l2fwd/main.c
@@ -226,7 +226,7 @@ print_stats(void)
printf("\n====================================================\n");
}
-/* Send the packet on an output interface */
+/* Send the burst of packets on an output interface */
static int
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;
}
-/* Send the packet on an output interface */
+/* Enqueue packets for TX and prepare them to be sent */
static int
l2fwd_send_packet(struct rte_mbuf *m, uint8_t port)
{