aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/avf/avf.h
diff options
context:
space:
mode:
authorSteven Luong <sluong@cisco.com>2020-09-28 12:25:22 -0700
committerDamjan Marion <dmarion@me.com>2020-09-29 09:00:26 +0000
commit8b388e35b2aeca39c277453337751d14aeba0d40 (patch)
tree5f745cdd4e63f915726b23b0fd940fbcd30e1a2d /src/plugins/avf/avf.h
parent4537c30925050ffa34c33e6a481f07f1ec0a01ff (diff)
avf: validate queue size config
Check CLI queue size is within the range of 64 and 4096 Enhance show hardware to display queue size and number of queues. Type: improvement Signed-off-by: Steven Luong <sluong@cisco.com> Change-Id: I360e3cdb2e69e4ea7380ed924e71a5ae84ed4b64
Diffstat (limited to 'src/plugins/avf/avf.h')
-rw-r--r--src/plugins/avf/avf.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/avf/avf.h b/src/plugins/avf/avf.h
index 43741dcad83..32d9cc61015 100644
--- a/src/plugins/avf/avf.h
+++ b/src/plugins/avf/avf.h
@@ -22,6 +22,9 @@
#include <vlib/log.h>
+#define AVF_QUEUE_SZ_MAX 4096
+#define AVF_QUEUE_SZ_MIN 64
+
#define AVF_AQ_ENQ_SUSPEND_TIME 50e-6
#define AVF_AQ_ENQ_MAX_WAIT_TIME 250e-3