ip: Replace Sematics for Interface IP addresses
[vpp.git] / src / vnet / ip / ip_source_and_port_range_check.h
index fefe5ff..b78e25e 100644 (file)
@@ -24,7 +24,7 @@ typedef struct
   vnet_main_t *vnet_main;
 } source_range_check_main_t;
 
-source_range_check_main_t source_range_check_main;
+extern source_range_check_main_t source_range_check_main;
 
 typedef enum
 {
@@ -78,7 +78,7 @@ typedef struct
  *
  *   struct B {
  *     u16 n_ranges;
- *     range_t *ragnes; // vector of ranges.
+ *     range_t *ranges; // vector of ranges.
  *   }
  *
  *   so to read ranges[0] we would first d-cache miss on the address
@@ -88,7 +88,7 @@ typedef struct
  *
  *  struct B {
  *    u16 n_ranges;
- *    range_t ragnes[N];
+ *    range_t ranges[N];
  *  }
  *
  * memory:
@@ -101,9 +101,14 @@ typedef struct
  */
 typedef struct protocol_port_range_dpo_t_
 {
+  /**
+   * Required for pool_get_aligned
+   */
+  CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
+
   /**
    * The number of blocks from the 'block' array below
-   * that have rnages configured. We keep this count so that in the data-path
+   * that have ranges configured. We keep this count so that in the data-path
    * we can limit the loop to be only over the blocks we need
    */
   u16 n_used_blocks;