Trivial: Cleanup some typos. 50/14950/2
authorPaul Vinciguerra <pvinci@vinciconsulting.com>
Mon, 24 Sep 2018 12:25:00 +0000 (05:25 -0700)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 27 Sep 2018 19:59:44 +0000 (19:59 +0000)
This is a new commit for code under a different maintainer.

Change-Id: I79fa403fec6a312238a9a4b18b35dbcafaa05439
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
32 files changed:
src/vat/api_format.c
src/vpp-api/client/client.c
src/vpp/api/api.c
src/vpp/api/summary_stats_client.c
src/vpp/api/test_client.c
src/vpp/api/test_ha.c
src/vpp/api/vpe.api
src/vpp/app/version.c
src/vpp/conf/80-vpp.conf
src/vpp/conf/startup.conf
src/vpp/stats/stats.api
src/vpp/stats/stats.md
src/vppinfra/dlmalloc.c
src/vppinfra/elf.h
src/vppinfra/elog.c
src/vppinfra/hash.h
src/vppinfra/heap.h
src/vppinfra/maplog.h
src/vppinfra/memcpy_avx2.h
src/vppinfra/memcpy_avx512.h
src/vppinfra/mhash.c
src/vppinfra/mheap.h
src/vppinfra/os.h
src/vppinfra/phash.c
src/vppinfra/pool.h
src/vppinfra/qsort.c
src/vppinfra/test_vec.c
src/vppinfra/timing_wheel.h
src/vppinfra/unformat.c
src/vppinfra/valgrind.h
src/vppinfra/vec_bootstrap.h
src/vppinfra/warnings.h

index 9a31f18..83b875e 100644 (file)
@@ -1355,7 +1355,7 @@ static void
 vl_api_l2_macs_event_t_handler (vl_api_l2_macs_event_t * mp)
 {
   u32 n_macs = ntohl (mp->n_macs);
-  errmsg ("L2MAC event recived with pid %d cl-idx %d for %d macs: \n",
+  errmsg ("L2MAC event received with pid %d cl-idx %d for %d macs: \n",
          ntohl (mp->pid), mp->client_index, n_macs);
   int i;
   for (i = 0; i < n_macs; i++)
@@ -9298,7 +9298,7 @@ api_mpls_ip_bind_unbind (vat_main_t * vam)
 
   if (!address_set)
     {
-      errmsg ("IP addres not set");
+      errmsg ("IP address not set");
       return -99;
     }
 
@@ -23849,7 +23849,7 @@ _(one_ndp_entries_get, "bd <bridge-domain>")                            \
 _(one_add_del_l2_arp_entry, "[del] mac <mac> bd <bd> ip4 <ip4>")        \
 _(one_l2_arp_bd_get, "")                                                \
 _(one_l2_arp_entries_get, "bd <bridge-domain>")                         \
-_(one_stats_enable_disable, "enable|disalbe")                           \
+_(one_stats_enable_disable, "enable|disable")                           \
 _(show_one_stats_enable_disable, "")                                    \
 _(one_eid_table_vni_dump, "")                                           \
 _(one_eid_table_map_dump, "l2|l3")                                      \
index b27e5b7..6c922db 100644 (file)
@@ -273,7 +273,7 @@ vac_rx_suspend (void)
       ep = vl_msg_api_alloc (sizeof (*ep));
       ep->_vl_msg_id = ntohs(VL_API_MEMCLNT_RX_THREAD_SUSPEND);
       vl_msg_api_send_shmem(am->vl_input_queue, (u8 *)&ep);
-      /* Wait for RX thread to tell us it has suspendend */
+      /* Wait for RX thread to tell us it has suspended */
       pthread_cond_wait(&pm->suspend_cv, &pm->queue_lock);
       rx_is_running = false;
     }
index 6c06ab4..f7643f4 100644 (file)
@@ -432,7 +432,7 @@ static void setup_message_id_table (api_main_t * am);
 /*
  * vpe_api_hookup
  * Add vpe's API message handlers to the table.
- * vlib has alread mapped shared memory and
+ * vlib has already mapped shared memory and
  * added the client registration handlers.
  * See .../open-repo/vlib/memclnt_vlib.c:memclnt_process()
  */
index e0488b5..8c8e9bb 100644 (file)
@@ -96,7 +96,7 @@ vlib_main_t **vlib_mains;
 void
 vlib_cli_output (struct vlib_main_t *vm, char *fmt, ...)
 {
-  clib_warning ("vlib_cli_output callled...");
+  clib_warning ("vlib_cli_output called...");
 }
 
 
index 98cc18e..e36fdbf 100644 (file)
@@ -93,7 +93,7 @@ vlib_main_t **vlib_mains;
 void
 vlib_cli_output (struct vlib_main_t *vm, char *fmt, ...)
 {
-  clib_warning ("vlib_cli_output callled...");
+  clib_warning ("vlib_cli_output called...");
 }
 
 u8 *
index 50552ad..d88c4d4 100644 (file)
@@ -101,7 +101,7 @@ vlib_main_t **vlib_mains;
 void
 vlib_cli_output (struct vlib_main_t *vm, char *fmt, ...)
 {
-  clib_warning ("BUG: vlib_cli_output callled...");
+  clib_warning ("BUG: vlib_cli_output called...");
 }
 
 #define foreach_api_msg                         \
index 22b7f3e..2eb14bc 100644 (file)
@@ -47,7 +47,7 @@ option version = "1.0.0";
  * SR APIs: see .../src/vnet/srv6/{sr.api, sr_api.c}
  * CLASSIFY APIs: see ... /src/vnet/classify/{classify.api, classify_api.c}
  * FLOW APIs: see ... /src/vnet/flow/{flow.api, flow_api.c}
- * DHCP APIs: see ... /src/vnet/dhcp/{dhcpk.api, dhcp_api.c}
+ * DHCP APIs: see ... /src/vnet/dhcp/{dhcp.api, dhcp_api.c}
  * COP APIs: see ... /src/vnet/cop/{cop.api, cop_api.c}
  * POLICER APIs: see ... /src/vnet/policer/{policer.api, policer_api.c}
  * STATS APIs: see .../src/vpp/stats/{stats.api, stats.c}
index 58ac9ba..e210663 100644 (file)
@@ -102,7 +102,7 @@ show_vpe_version_command_fn (vlib_main_t * vm,
 }
 
 /*?
- * This commmand displays image version and command line arguments
+ * This command displays image version and command line arguments
  *
  * @cliexpar
  * How to display the image version string:
index 8fdf184..539cbb7 100644 (file)
@@ -7,7 +7,7 @@ vm.max_map_count=3096
 # All groups allowed to access hugepages
 vm.hugetlb_shm_group=0
 
-# Shared Memory Max must be greator or equal to the total size of hugepages.
+# Shared Memory Max must be greater or equal to the total size of hugepages.
 # For 2MB pages, TotalHugepageSize = vm.nr_hugepages * 2 * 1024 * 1024
 # If the existing kernel.shmmax setting  (cat /sys/proc/kernel/shmmax)
 # is greater than the calculated TotalHugepageSize then set this parameter
index 979d41a..66b0c22 100644 (file)
@@ -70,7 +70,7 @@ cpu {
 }
 
 # dpdk {
-       ## Change default settings for all intefaces
+       ## Change default settings for all interfaces
        # dev default {
                ## Number of receive queues, enables RSS
                ## Default is 1
@@ -114,7 +114,7 @@ cpu {
        ## uio_pci_generic or auto (default)
        # uio-driver vfio-pci
 
-       ## Disable mutli-segment buffers, improves performance but
+       ## Disable multi-segment buffers, improves performance but
        ## disables Jumbo MTU support
        # no-multi-seg
 
index c66f2e4..c94471a 100644 (file)
@@ -177,7 +177,7 @@ autoreply define want_ip6_fib_stats
   u32 pid;
 };
 
-/** \brief Want IP4 muilticast FIB Stats, register for continuous stats
+/** \brief Want IP4 multicast FIB Stats, register for continuous stats
     @param client_index - opaque cookie to identify the sender
     @param context - sender context, to match reply w/ request
     @param enable_disable - 1 = enable stats, 0 = disable
@@ -273,7 +273,7 @@ typeonly manual_print manual_endian define ip4_nbr_counter
 };
 
 /**
- * @brief Per-neighbour (i.e. per-adjacency) coutners
+ * @brief Per-neighbour (i.e. per-adjacency) counters
  * @param count The size of the array of counters
  * @param sw_if_index The interface the adjacency is on
  * @param begin Flag to indicate this is the first set of stats for this
@@ -494,7 +494,7 @@ autoreply define want_bier_neighbor_stats
 
 /** \brief Stat for one BIER neighbor object
     @param tbl_id - The BIER Table ID the neighbour belongs to.
-    @param path - The path describing the negihbor (this is the data
+    @param path - The path describing the neighbor (this is the data
                   given during a BIER route add)
     @param packets - number of packets sent
     @param bytes - number of bytes sent
index d66c31b..dd14a18 100644 (file)
@@ -36,7 +36,7 @@ typedef struct {
 ```
 
 #### Writer
-On the VPP side there is a single writer (controlled by a spinlock). When the writer starts it sets in_progress=1, continues with the update of the data-structues, and when done, bumps epoch++ and sets in_progress=0.
+On the VPP side there is a single writer (controlled by a spinlock). When the writer starts it sets in_progress=1, continues with the update of the data-structures, and when done, bumps epoch++ and sets in_progress=0.
 
 #### Readers
 If in_progress=1, there is no point continuing, so reader sits spinning on the in_progress flag until it is 0. Then it sets start_epoch = epoch and continues copying out the counter data it is interested in, while doing strict boundary checks on all offsets / pointers. When the reader is done, it checks if in_progress=1 or if epoch != start_epoch. If either of those are true is discards the data read.
index 16f2de0..8a07621 100644 (file)
@@ -342,7 +342,7 @@ static FORCEINLINE int win32munmap(void* ptr, size_t size) {
     #define CALL_MREMAP(addr, osz, nsz, mv)     MFAIL
 #endif /* HAVE_MMAP && HAVE_MREMAP */
 
-/* mstate bit set if continguous morecore disabled or failed */
+/* mstate bit set if contiguous morecore disabled or failed */
 #define USE_NONCONTIGUOUS_BIT (4U)
 
 /* mstate bit set if no expansion allowed */
@@ -1585,7 +1585,7 @@ static size_t traverse_and_check(mstate m);
   http://www.usenix.org/events/lisa03/tech/robertson.html The footer
   of an inuse chunk holds the xor of its mstate and a random seed,
   that is checked upon calls to free() and realloc().  This is
-  (probabalistically) unguessable from outside the program, but can be
+  (probabilistically) unguessable from outside the program, but can be
   computed by any code successfully malloc'ing any chunk, so does not
   itself provide protection against code that has already broken
   security through some other means.  Unlike Robertson et al, we
@@ -3278,7 +3278,7 @@ void* dlmalloc(size_t bytes) {
 
 void dlfree(void* mem) {
   /*
-     Consolidate freed chunks with preceeding or succeeding bordering
+     Consolidate freed chunks with preceding or succeeding bordering
      free chunks, if they exist, and then place in a bin.  Intermixed
      with special cases for top, dv, mmapped chunks, and usage errors.
   */
@@ -5048,10 +5048,10 @@ History:
         Wolfram Gloger (Gloger@lrz.uni-muenchen.de).
       * Use last_remainder in more cases.
       * Pack bins using idea from  colin@nyx10.cs.du.edu
-      * Use ordered bins instead of best-fit threshhold
+      * Use ordered bins instead of best-fit threshold
       * Eliminate block-local decls to simplify tracing and debugging.
       * Support another case of realloc via move into top
-      * Fix error occuring when initial sbrk_base not word-aligned.
+      * Fix error occurring when initial sbrk_base not word-aligned.
       * Rely on page size for units instead of SBRK_UNIT to
         avoid surprises about sbrk alignment conventions.
       * Add mallinfo, mallopt. Thanks to Raymond Nijssen
index 008ea28..c57b06f 100644 (file)
   _ (68HC12, 53)               /* Motorola M68HC12 */                  \
   _ (MMA, 54)                  /* Fujitsu MMA Multimedia Accel. */     \
   _ (PCP, 55)                  /* Siemens PCP */                       \
-  _ (NCPU, 56)                 /* Sony nCPU embeeded RISC */           \
+  _ (NCPU, 56)                 /* Sony nCPU embedded RISC */           \
   _ (NDR1, 57)                 /* Denso NDR1 microprocessor */         \
   _ (STARCORE, 58)             /* Motorola Start*Core processor */     \
   _ (ME16, 59)                 /* Toyota ME16 processor */             \
index 036dce9..a86fade 100644 (file)
@@ -736,7 +736,7 @@ elog_merge (elog_main_t * dst, u8 * dst_tag, elog_main_t * src, u8 * src_tag,
 
     /*
      * Move the earlier set of events later, to avoid creating
-     * events which preceed the Big Bang (aka have negative timestamps).
+     * events which precede the Big Bang (aka have negative timestamps).
      *
      * Not to any scale, we have something like the following picture:
      *
index de155e6..36a7006 100644 (file)
@@ -274,7 +274,7 @@ uword hash_bytes (void *v);
 /* Public macro to set (key, value) for pointer key */
 #define hash_set_mem(h,key,value) hash_set3 (h, pointer_to_uword (key), (value), 0)
 
-/* Public inline funcion allocate and copy key to use in hash for pointer key */
+/* Public inline function allocate and copy key to use in hash for pointer key */
 always_inline void
 hash_set_mem_alloc (uword ** h, void *key, uword v)
 {
@@ -290,7 +290,7 @@ hash_set_mem_alloc (uword ** h, void *key, uword v)
 /* Public macro to unset (key, value) for pointer key */
 #define hash_unset_mem(h,key)    ((h) = _hash_unset ((h), pointer_to_uword (key),0))
 
-/* Public inline funcion to unset pointer key and then free the key memory */
+/* Public inline function to unset pointer key and then free the key memory */
 always_inline void
 hash_unset_mem_free (uword ** h, void *key)
 {
@@ -311,7 +311,7 @@ extern void *_hash_free (void *v);
 
 clib_error_t *hash_validate (void *v);
 
-/* Public inline funcion to get the number of value bytes for a hash table */
+/* Public inline function to get the number of value bytes for a hash table */
 always_inline uword
 hash_value_bytes (hash_t * h)
 {
@@ -319,7 +319,7 @@ hash_value_bytes (hash_t * h)
   return (sizeof (p->value[0]) << h->log2_pair_size) - sizeof (p->key);
 }
 
-/* Public inline funcion to get log2(size of a (key,value) pair) */
+/* Public inline function to get log2(size of a (key,value) pair) */
 always_inline uword
 hash_pair_log2_bytes (hash_t * h)
 {
@@ -332,21 +332,21 @@ hash_pair_log2_bytes (hash_t * h)
   return log2_bytes;
 }
 
-/* Public inline funcion to get size of a (key,value) pair */
+/* Public inline function to get size of a (key,value) pair */
 always_inline uword
 hash_pair_bytes (hash_t * h)
 {
   return (uword) 1 << hash_pair_log2_bytes (h);
 }
 
-/* Public inline funcion to advance a pointer past one (key,value) pair */
+/* Public inline function to advance a pointer past one (key,value) pair */
 always_inline void *
 hash_forward1 (hash_t * h, void *v)
 {
   return (u8 *) v + hash_pair_bytes (h);
 }
 
-/* Public inline funcion to advance a pointer past N (key,value) pairs */
+/* Public inline function to advance a pointer past N (key,value) pairs */
 always_inline void *
 hash_forward (hash_t * h, void *v, uword n)
 {
@@ -438,7 +438,7 @@ do {                                                                        \
 
     calls body with each active hash pair
 */
-/* Iteratate over key/value pairs. */
+/* Iterate over key/value pairs. */
 #define hash_foreach(key_var,value_var,h,body)                 \
 do {                                                           \
   hash_pair_t * _r;                                            \
index 70e34cb..f76c945 100644 (file)
@@ -137,7 +137,7 @@ typedef struct
 
   format_function_t *format_elt;
 
-  /* Used for validattion/debugging. */
+  /* Used for validation/debugging. */
   uword *used_elt_bitmap;
 
   /* First and last element of doubly linked chain of elements. */
@@ -150,7 +150,7 @@ typedef struct
 
   u32 flags;
   /* Static heaps are made from external memory given to
-     us by user and are not re-sizeable vectors. */
+     us by user and are not re-sizable vectors. */
 #define HEAP_IS_STATIC (1)
 } heap_header_t;
 
index 67a83a7..f7d2f75 100644 (file)
@@ -101,9 +101,9 @@ typedef struct
   u64 file_size_in_bytes;      /**< file size in bytes */
   u32 record_size_in_bytes;    /**< record size in bytes */
   u32 application_id;          /**< application identifier */
-  u8 application_major_version;        /**< applcation major version number */
-  u8 application_minor_version;        /**< applcation minor version number */
-  u8 application_patch_version;        /**< applcation patch version number */
+  u8 application_major_version;        /**< application major version number */
+  u8 application_minor_version;        /**< application minor version number */
+  u8 application_patch_version;        /**< application patch version number */
   u8 maplog_is_circular;       /**< single, circular log */
 } clib_maplog_init_args_t;
 
index da398a4..6519d86 100644 (file)
@@ -229,7 +229,7 @@ clib_memcpy (void *dst, const void *src, size_t n)
 }
 
 
-#endif /* included_clib_mamcpy_avx2_h */
+#endif /* included_clib_memcpy_avx2_h */
 
 
 /*
index 0039080..6798250 100644 (file)
@@ -265,7 +265,7 @@ clib_memcpy (void *dst, const void *src, size_t n)
 }
 
 
-#endif /* included_clib_mamcpy_avx512_h */
+#endif /* included_clib_memcpy_avx512_h */
 
 
 /*
index 00b67c4..b694cc7 100644 (file)
@@ -263,7 +263,7 @@ typedef struct
 {
   u32 heap_handle;
 
-  /* Must conincide with vec_header. */
+  /* Must coincide with vec_header. */
   vec_header_t vec;
 } mhash_string_key_t;
 
index 918adb1..afc2bf4 100644 (file)
@@ -80,7 +80,7 @@ uword mheap_bytes (void *v);
 
 void mheap_usage (void *v, clib_mem_usage_t * usage);
 
-/* Enable disable traceing. */
+/* Enable disable tracing. */
 void mheap_trace (void *v, int enable);
 
 /* Test routine. */
index 3330071..3ec214e 100644 (file)
@@ -44,7 +44,7 @@
 /* External panic function. */
 void os_panic (void);
 
-/* External exit function analagous to unix exit. */
+/* External exit function analogous to unix exit. */
 void os_exit (int code);
 
 /* External function to print a line. */
index 14da522..f6eecaa 100644 (file)
@@ -556,7 +556,7 @@ augment (phash_main_t * pm, u32 b_root, u32 high_water)
 
          /* tb_parent with v has either one or zero collisions. */
 
-         /* add childb to the queue of reachable things */
+         /* add child b to the queue of reachable things */
          if (tb_child)
            tb_child->water_b = high_water;
          pm->tabq[tail].b_q = tb_child ? tb_child - pm->tabb : ~0;
index 2b8e058..6927022 100644 (file)
@@ -493,7 +493,7 @@ do {                                                                        \
     }
 
 /**
- * @brief Remove all elemenets from a pool in a safe way
+ * @brief Remove all elements from a pool in a safe way
  *
  * @param VAR each element in the pool
  * @param POOL The pool to flush
index 2faa589..145ae40 100644 (file)
@@ -133,7 +133,7 @@ qsort (void *base, uword n, uword size,
  * of the first, last and middle elements).  (Using this median instead of
  * the first element is a big win). Then, the usual partitioning/swapping,
  * followed by moving the discriminator into the right place.  Then, figure
- * out the sizes of the two partions, do the smaller one recursively and the
+ * out the sizes of the two partitions, do the smaller one recursively and the
  * larger one via a repeat of this code.  Stopping when there are less than
  * THRESH elements in a partition and cleaning up with an insertion sort (in
  * our caller) is a huge win. All data swaps are done in-line, which is
index d02d71c..bc878ee 100644 (file)
@@ -124,7 +124,7 @@ uword g_call_stats[OP_MAX];
 
 
 /* A structure for both vector headers and vector elements might be useful to
-   uncover potential alignement issues. */
+   uncover potential alignment issues. */
 
 typedef struct
 {
index 7daea99..e668eb0 100644 (file)
@@ -20,7 +20,7 @@
 typedef struct
 {
   /* Time of this element in units cpu clock ticks relative to time
-     base. 32 bits should be large enough for serveral kilo-seconds
+     base. 32 bits should be large enough for several kilo-seconds
      to elapse before we have to re-set time base. */
   u32 cpu_time_relative_to_base;
 
index e30c6d3..365cdb1 100644 (file)
@@ -167,7 +167,7 @@ di (unformat_input_t * i)
 #endif
 
 /* Parse delimited vector string.  If string starts with { then string
-   is delimited by balenced parenthesis.  Other string is delimited by
+   is delimited by balanced parenthesis.  Other string is delimited by
    white space.  {} were chosen since they are special to the shell. */
 static uword
 unformat_string (unformat_input_t * input,
index e74d7e8..7509e70 100644 (file)
@@ -3728,7 +3728,7 @@ VALGRIND_PRINTF_BACKTRACE (const char *format, ...)
 
 
 /* These requests allow control to move from the simulated CPU to the
-   real CPU, calling an arbitary function.
+   real CPU, calling an arbitrary function.
 
    Note that the current ThreadId is inserted as the first argument.
    So this call:
index bff6889..fec0df0 100644 (file)
@@ -39,7 +39,7 @@
 #define included_clib_vec_bootstrap_h
 
 /** \file
-    Vector bootsrap header file
+    Vector bootstrap header file
 */
 
 /* Bootstrap include so that #include <vppinfra/mem.h> can include e.g.
@@ -47,7 +47,7 @@
 
 /** \brief vector header structure
 
-   Bookeeping header preceding vector elements in memory.
+   Bookkeeping header preceding vector elements in memory.
    User header information may preceed standard vec header.
    If you change u32 len -> u64 len, single vectors can
    exceed 2**32 elements. Clib heaps are vectors. */
index 61dcc44..1d9f4b7 100644 (file)
 /*
  * Macros to toggle off/on warnings
  *
- * Start by silenging pragma warnings so that we can explicitely silence
+ * Start by silencing pragma warnings so that we can explicitly silence
  * a warning introduced on some compiler version and not get a warning on older
  * versions of that same compiler.
  *
- * gcc corresponding warnign is "Wpargma"
- * clang corresponding warnign is "Wunknown-warning-option"
+ * gcc corresponding warning is "Wpargma"
+ * clang corresponding warning is "Wunknown-warning-option"
  *
  * For example, Wtautological-compare is introduced in gcc-6 and this would
  * trigger a Wpargma warning on gcc-5.