diff options
author | Pierre Pfister <ppfister@cisco.com> | 2016-03-16 09:14:28 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2016-03-18 14:22:37 +0000 |
commit | cb656303dfae0497c06ac925a08bda9f2b9d4d91 (patch) | |
tree | b5b9065652ed603e7f754789188cf0854c3542b2 /vnet/vnet/classify/vnet_classify.c | |
parent | dbf19ca7f9b93a843503f9204afd0815f3ef8332 (diff) |
vnet_classify: Handle non-aligned vectors and various bugfixes
classifier used to crash when packet data was not aligned.
This commit also includes:
- writer lock initialization bugfix
- CLI help was missing opaque-index
- ip_input_acl was applying the mask on buffer->data instead of packet head
On a side note, my tests failed to show any improvements
when using SSE. Further tests might be interesting to see if they
actually perform better.
Change-Id: Ic34eecd6a2226919121ffce2fe4324506deee52f
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
Diffstat (limited to 'vnet/vnet/classify/vnet_classify.c')
-rw-r--r-- | vnet/vnet/classify/vnet_classify.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vnet/vnet/classify/vnet_classify.c b/vnet/vnet/classify/vnet_classify.c index 43acb024033..7f7138af2af 100644 --- a/vnet/vnet/classify/vnet_classify.c +++ b/vnet/vnet/classify/vnet_classify.c @@ -95,6 +95,7 @@ vnet_classify_new_table (vnet_classify_main_t *cm, t->writer_lock = clib_mem_alloc_aligned (CLIB_CACHE_LINE_BYTES, CLIB_CACHE_LINE_BYTES); + t->writer_lock[0] = 0; clib_mem_set_heap (oldheap); return (t); @@ -1735,7 +1736,7 @@ VLIB_CLI_COMMAND (classify_session_command, static) = { .path = "classify session", .short_help = "classify session [hit-next|l2-hit-next|acl-hit-next <next_index>]" - "\n table-index <nn> match [hex] [l2] [l3 ip4]", + "\n table-index <nn> match [hex] [l2] [l3 ip4] [opaque-index <index>]", .function = classify_session_command_fn, }; |