commit | bc67e9fd206ef3d6234960a61a7f9ab56a938ef2 | [log] [tgz] |
---|---|---|
author | Mohammed Hawari <mohammed@hawari.fr> | Fri Dec 08 11:16:54 2023 +0100 |
committer | Damjan Marion <dmarion@0xa5.net> | Thu Dec 14 16:29:53 2023 +0000 |
tree | e98ab163c36985f200dd2ac30b570e32c60e81c2 | |
parent | a474bc8a3b4307869e97e6d76a8b06cfcebea49a [diff] [blame] |
bpf_trace_filter: allow use whithout classifier Change-Id: I7ac5693ca547fe7249e7b6297bade70a6052b169 Type: improvement Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
diff --git a/src/vnet/classify/trace_classify.h b/src/vnet/classify/trace_classify.h index fea4dde..0342121 100644 --- a/src/vnet/classify/trace_classify.h +++ b/src/vnet/classify/trace_classify.h
@@ -45,6 +45,9 @@ if (func != 0) return -1; + if (classify_table_index == ~0) + return -1; + /* This will happen... */ if (pool_is_free_index (vcm->tables, classify_table_index)) return -1;