diff options
author | Neale Ranns <neale.ranns@cisco.com> | 2020-12-14 16:02:17 +0000 |
---|---|---|
committer | Ole Tr�an <otroan@employees.org> | 2021-01-20 09:22:43 +0000 |
commit | 1441a6c54128584a86713af4f64f6d92ed4d79a4 (patch) | |
tree | 301ea145c6af4531eb58d7ddb073232404fcdcb4 /src/vnet/classify/ip_classify.c | |
parent | 7f1d780f0be6e176bd19809c2d733e7ebd0007c4 (diff) |
classify: Layout classify entry to group data-plane accessed fields on
one cache line
Type: refactor
Signed-off-by: Neale Ranns <neale.ranns@cisco.com>
Change-Id: I54128ba62f8dcc87c1845b33ed3637112d42a891
Diffstat (limited to 'src/vnet/classify/ip_classify.c')
-rw-r--r-- | src/vnet/classify/ip_classify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/classify/ip_classify.c b/src/vnet/classify/ip_classify.c index d598d1a5c9b..5a5cfed6904 100644 --- a/src/vnet/classify/ip_classify.c +++ b/src/vnet/classify/ip_classify.c @@ -280,7 +280,7 @@ ip_classify_inline (vlib_main_t * vm, vlib_add_trace (vm, node, b0, sizeof (*t)); t->next_index = next0; t->table_index = t0 ? t0 - vcm->tables : ~0; - t->entry_index = e0 ? e0 - t0->entries : ~0; + t->entry_index = e0 ? e0->opaque_index : ~0; } /* verify speculative enqueue, maybe switch current next frame */ |