diff options
author | Benoît Ganne <bganne@cisco.com> | 2022-12-01 15:58:36 +0100 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2022-12-07 03:02:46 +0000 |
commit | bd9cde810b9aa0a9ee59d10aee91bc313318f042 (patch) | |
tree | 323234418503703ac3cfaddf5138b0d8500cde3a /src/vnet/classify/vnet_classify.c | |
parent | 0e79abbe2e4183fe32400bdfcbe0465a8f536ea1 (diff) |
classify: increase metadata from 16- to 32-bits
The metadata in classifier entries is used to index a fib or a dpo in
the acl nodes which can exceeds UINT16_MAX in large configurations.
To maintain entries size and alignment, decrease next_index from 32- to
16-bits: next_index should not exceed 16-bits in VPP, as it is already
shown by vlib_buffer_enqueue_to_next() or dpo_id_t.dpoi_next_node.
Type: fix
Change-Id: I4fd1b3cd495319420044c219036b2d2ea952270a
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/classify/vnet_classify.c')
-rw-r--r-- | src/vnet/classify/vnet_classify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vnet/classify/vnet_classify.c b/src/vnet/classify/vnet_classify.c index 8c3b2907180..c610c466ebb 100644 --- a/src/vnet/classify/vnet_classify.c +++ b/src/vnet/classify/vnet_classify.c @@ -2785,9 +2785,9 @@ unformat_classify_match (unformat_input_t * input, va_list * args) int vnet_classify_add_del_session (vnet_classify_main_t *cm, u32 table_index, - const u8 *match, u32 hit_next_index, + const u8 *match, u16 hit_next_index, u32 opaque_index, i32 advance, u8 action, - u16 metadata, int is_add) + u32 metadata, int is_add) { vnet_classify_table_t *t; vnet_classify_entry_5_t _max_e __attribute__ ((aligned (16))); |