aboutsummaryrefslogtreecommitdiff
path: root/tools/tools/netmap
diff options
context:
space:
mode:
Diffstat (limited to 'tools/tools/netmap')
-rw-r--r--tools/tools/netmap/bridge.c2
-rw-r--r--tools/tools/netmap/pkt-gen.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/tools/tools/netmap/bridge.c b/tools/tools/netmap/bridge.c
index 2385a0811fb5..2b9122c7e72c 100644
--- a/tools/tools/netmap/bridge.c
+++ b/tools/tools/netmap/bridge.c
@@ -227,7 +227,7 @@ process_rings(struct netmap_ring *rxring, struct netmap_ring *txring,
ts->buf_idx = rs->buf_idx;
rs->buf_idx = pkt;
- /* copy the packet lenght. */
+ /* copy the packet length. */
if (rs->len < 14 || rs->len > 2048)
D("wrong len %d rx[%d] -> tx[%d]", rs->len, j, k);
else if (verbose > 1)
diff --git a/tools/tools/netmap/pkt-gen.c b/tools/tools/netmap/pkt-gen.c
index 21dc8de9420c..f2f4e40b8705 100644
--- a/tools/tools/netmap/pkt-gen.c
+++ b/tools/tools/netmap/pkt-gen.c
@@ -432,7 +432,7 @@ sender_body(void *data)
if (setaffinity(targ->thread, targ->affinity))
goto quit;
- /* setup poll(2) machanism. */
+ /* setup poll(2) mechanism. */
memset(fds, 0, sizeof(fds));
fds[0].fd = targ->fd;
fds[0].events = (POLLOUT);
@@ -543,7 +543,7 @@ receiver_body(void *data)
if (setaffinity(targ->thread, targ->affinity))
goto quit;
- /* setup poll(2) machanism. */
+ /* setup poll(2) mechanism. */
memset(fds, 0, sizeof(fds));
fds[0].fd = targ->fd;
fds[0].events = (POLLIN);
@@ -568,7 +568,7 @@ receiver_body(void *data)
before quitting. */
if (poll(fds, 1, 1 * 1000) <= 0) {
gettimeofday(&targ->toc, NULL);
- targ->toc.tv_sec -= 1; /* Substract timeout time. */
+ targ->toc.tv_sec -= 1; /* Subtract timeout time. */
break;
}
@@ -994,8 +994,8 @@ main(int arc, char **argv)
continue;
/*
- * Collect threads o1utput and extract information about
- * how log it took to send all the packets.
+ * Collect threads output and extract information about
+ * how long it took to send all the packets.
*/
count += targs[i].count;
if (!timerisset(&tic) || timercmp(&targs[i].tic, &tic, <))