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=ea93e48cf6e918937422638cb574964b88a146b6;hp=b04fe613d1c5e1731e45a1b5f8c00b28cf7f6742;hpb=71612d61930e57e7c8ebf9e5647b15a4b23720b2;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 b04fe613d1c..b78e25e9b46 100644 --- a/src/vnet/ip/ip_source_and_port_range_check.h +++ b/src/vnet/ip/ip_source_and_port_range_check.h @@ -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;