X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fip%2Fip_source_and_port_range_check.h;h=b78e25e9b46ce5fd9e6e78bb99d37e49647c176a;hb=4a58e49cf;hp=fefe5ff1fd9520eae65aad340a7928f40ca16a1a;hpb=7cd468a3d7dee7d6c92f69a0bb7061ae208ec727;p=vpp.git diff --git a/src/vnet/ip/ip_source_and_port_range_check.h b/src/vnet/ip/ip_source_and_port_range_check.h index fefe5ff1fd9..b78e25e9b46 100644 --- a/src/vnet/ip/ip_source_and_port_range_check.h +++ b/src/vnet/ip/ip_source_and_port_range_check.h @@ -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;