summaryrefslogtreecommitdiffstats
path: root/common/vnf_common
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-05-31 12:56:50 +0000
committerDeepak S <deepak.s@linux.intel.com>2017-06-01 04:05:36 +0000
commit10745be7adb099f559ba1b00b8d97fda59f75d62 (patch)
treef8c26c055971d05eb25ecda6001e1177c2bd12e9 /common/vnf_common
parent71918b6858fbaf5745fe088403e4c9851af66046 (diff)
[SAMPLEVNF] Adding support to handle more than 16 ports
This patch extends num_ports vnf can handle ports > 16 . This include changes in the memory allocatiion and size of different paramters Change-Id: Id8907327023ba863ad107bb874cfb60bd38daee5 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'common/vnf_common')
-rw-r--r--common/vnf_common/app.h10
-rw-r--r--common/vnf_common/pipeline_be.h14
2 files changed, 12 insertions, 12 deletions
diff --git a/common/vnf_common/app.h b/common/vnf_common/app.h
index 2af62f11..51c40c97 100644
--- a/common/vnf_common/app.h
+++ b/common/vnf_common/app.h
@@ -33,7 +33,7 @@
#include "pipeline.h"
#define APP_PARAM_NAME_SIZE PIPELINE_NAME_SIZE
-#define APP_LINK_PCI_BDF_SIZE 16
+#define APP_LINK_PCI_BDF_SIZE 32
struct app_link_params *fdir_p_link;
struct app_mempool_params {
char *name;
@@ -234,7 +234,7 @@ struct app_thread_pipeline_data {
};
#ifndef APP_MAX_THREAD_PIPELINES
-#define APP_MAX_THREAD_PIPELINES 16
+#define APP_MAX_THREAD_PIPELINES 32
#endif
#ifndef APP_THREAD_TIMER_PERIOD
@@ -262,7 +262,7 @@ struct app_thread_data {
};
#ifndef APP_MAX_LINKS
-#define APP_MAX_LINKS 16
+#define APP_MAX_LINKS 32
#endif
struct app_eal_params {
@@ -386,11 +386,11 @@ struct app_eal_params {
#define APP_MAX_PKTQ_TM APP_MAX_LINKS
#ifndef APP_MAX_PKTQ_SOURCE
-#define APP_MAX_PKTQ_SOURCE 16
+#define APP_MAX_PKTQ_SOURCE 32
#endif
#ifndef APP_MAX_PKTQ_SINK
-#define APP_MAX_PKTQ_SINK 16
+#define APP_MAX_PKTQ_SINK 32
#endif
#ifndef APP_MAX_MSGQ
diff --git a/common/vnf_common/pipeline_be.h b/common/vnf_common/pipeline_be.h
index 006a415e..fad6b25f 100644
--- a/common/vnf_common/pipeline_be.h
+++ b/common/vnf_common/pipeline_be.h
@@ -183,31 +183,31 @@ pipeline_port_out_params_get_ops(struct pipeline_port_out_params *p)
}
#ifndef PIPELINE_NAME_SIZE
-#define PIPELINE_NAME_SIZE 32
+#define PIPELINE_NAME_SIZE 64
#endif
#ifndef PIPELINE_MAX_PORT_IN
-#define PIPELINE_MAX_PORT_IN 16
+#define PIPELINE_MAX_PORT_IN 64
#endif
#ifndef PIPELINE_MAX_PORT_OUT
-#define PIPELINE_MAX_PORT_OUT 16
+#define PIPELINE_MAX_PORT_OUT 64
#endif
#ifndef PIPELINE_MAX_TABLES
-#define PIPELINE_MAX_TABLES 16
+#define PIPELINE_MAX_TABLES 64
#endif
#ifndef PIPELINE_MAX_MSGQ_IN
-#define PIPELINE_MAX_MSGQ_IN 16
+#define PIPELINE_MAX_MSGQ_IN 64
#endif
#ifndef PIPELINE_MAX_MSGQ_OUT
-#define PIPELINE_MAX_MSGQ_OUT 16
+#define PIPELINE_MAX_MSGQ_OUT 64
#endif
#ifndef PIPELINE_MAX_ARGS
-#define PIPELINE_MAX_ARGS 32
+#define PIPELINE_MAX_ARGS 64
#endif
struct pipeline_params {