aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/memif
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-05-29 23:03:06 -0400
committerDamjan Marion <dmarion@me.com>2020-12-04 22:48:07 +0000
commit6223766f96c469e42d6855c4b5933e7a9e06d621 (patch)
treeae12a375cc10d2a927c2840aae88f3962c74df92 /src/plugins/memif
parent2b29c9494e836a4f223c847c92eada9dc31e00a7 (diff)
libmemif: clean up typos
Type: style Change-Id: I0d25d922312dfd60a665916cf47c3d2faa29ea49 Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/plugins/memif')
-rw-r--r--src/plugins/memif/memif.api2
-rw-r--r--src/plugins/memif/memif.c2
-rw-r--r--src/plugins/memif/node.c2
-rw-r--r--src/plugins/memif/socket.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/memif/memif.api b/src/plugins/memif/memif.api
index 1f2c547c740..9e32db5b470 100644
--- a/src/plugins/memif/memif.api
+++ b/src/plugins/memif/memif.api
@@ -116,7 +116,7 @@ autoreply define memif_delete
/** \brief Memory interface details structure
@param context - sender context, to match reply w/ request
@param socket_id - u32 used to identify the given socket filename
- @param socket_filename - correpsonding NUL terminated socket filename
+ @param socket_filename - corresponding NUL terminated socket filename
*/
define memif_socket_filename_details
{
diff --git a/src/plugins/memif/memif.c b/src/plugins/memif/memif.c
index e9bdf42bc2f..4deb46afd73 100644
--- a/src/plugins/memif/memif.c
+++ b/src/plugins/memif/memif.c
@@ -218,7 +218,7 @@ memif_int_fd_read_ready (clib_file_t * uf)
size = read (uf->file_descriptor, &b, sizeof (b));
if (size < 0)
{
- memif_log_debug (mif, "Failed to read form socket");
+ memif_log_debug (mif, "Failed to read from socket");
return 0;
}
diff --git a/src/plugins/memif/node.c b/src/plugins/memif/node.c
index 506d88af76d..7b341e4b077 100644
--- a/src/plugins/memif/node.c
+++ b/src/plugins/memif/node.c
@@ -205,7 +205,7 @@ memif_device_input_inline (vlib_main_t * vm, vlib_node_runtime_t * node,
ring_size = 1 << mq->log2_ring_size;
mask = ring_size - 1;
- /* asume that somebody will want to add ethernet header on the packet
+ /* assume that somebody will want to add ethernet header on the packet
so start with IP header at offset 14 */
start_offset = (mode == MEMIF_INTERFACE_MODE_IP) ? 14 : 0;
diff --git a/src/plugins/memif/socket.c b/src/plugins/memif/socket.c
index 553a17576c8..5a381a7c7cd 100644
--- a/src/plugins/memif/socket.c
+++ b/src/plugins/memif/socket.c
@@ -363,7 +363,7 @@ memif_msg_receive_add_ring (memif_if_t * mif, memif_msg_t * msg, int fd)
mif->run.num_m2s_rings = vec_len (mif->tx_queues);
}
- // clear previous cache data if interface reconncected
+ // clear previous cache data if interface reconnected
clib_memset (mq, 0, sizeof (memif_queue_t));
mq->int_fd = fd;
mq->int_clib_file_index = ~0;