X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fdevices%2Fpipe%2Fpipe.c;h=ec50f63d9b559929871804410c979248c4457f5c;hb=f16e9a550;hp=89932a776681dab42195f15dac1c1bbacbb4d5ce;hpb=2bc816915965c936d579be60e83105f9cb05c875;p=vpp.git diff --git a/src/vnet/devices/pipe/pipe.c b/src/vnet/devices/pipe/pipe.c index 89932a77668..ec50f63d9b5 100644 --- a/src/vnet/devices/pipe/pipe.c +++ b/src/vnet/devices/pipe/pipe.c @@ -21,7 +21,7 @@ * @file * @brief Pipe Interfaces. * - * A pipe interface, like the UNIX pipe, is a pair of interfaces + * A pipe interface, like the UNIX pipe, is a pair of vpp interfaces * that are joined. */ const static pipe_t PIPE_INVALID = { @@ -30,7 +30,7 @@ const static pipe_t PIPE_INVALID = { }; /** - * Various 'module' lavel variables + * Various 'module' level variables */ typedef struct pipe_main_t_ { @@ -40,7 +40,7 @@ typedef struct pipe_main_t_ uword *instances; /** - * the per-swif-index array of pipes. Each end of the pipe is stored againt + * the per-swif-index array of pipes. Each end of the pipe is stored against * its respective sw_if_index */ pipe_t *pipes; @@ -51,7 +51,7 @@ static pipe_main_t pipe_main; /* * The pipe rewrite is the same size as an ethernet header (since it * is an ethernet interface and the DP is optimised for writing - * sizeof(ethernet_header_t) rewrites. Hwoever, there are no MAC addresses + * sizeof(ethernet_header_t) rewrites. However, there are no MAC addresses * since pipes don't have them. */ static u8 * @@ -167,7 +167,7 @@ pipe_tx (vlib_main_t * vm, vlib_node_runtime_t * node, vlib_frame_t * frame) vlib_put_next_frame (vm, node, next_index, n_left_to_next); } - return n_left_from; + return frame->n_vectors; } static u8 *