aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2024-03-08 18:40:41 +0200
committerPetri Savolainen <petri.savolainen@nokia.com>2024-04-29 15:42:54 +0300
commit9023ec2152bbfe8d3da96d301890a27ec5ace236 (patch)
tree451923cef838f076b7682e3500bce142eb9d4441 /platform/linux-generic/include
parentf2be090f761835e081dce8950b571b8d380d6694 (diff)
linux-gen: tm: use new ODP_TM_NAME_LEN constant
Use new ODP_TM_NAME_LEN constant as the maximum name length for traffic manager objects. This reduces the maximum name length by one character. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Tuomas Taipale <tuomas.taipale@nokia.com>
Diffstat (limited to 'platform/linux-generic/include')
-rw-r--r--platform/linux-generic/include/odp_name_table_internal.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/linux-generic/include/odp_name_table_internal.h b/platform/linux-generic/include/odp_name_table_internal.h
index 40ae40d01..4d329c907 100644
--- a/platform/linux-generic/include/odp_name_table_internal.h
+++ b/platform/linux-generic/include/odp_name_table_internal.h
@@ -10,6 +10,7 @@
extern "C" {
#endif
+#include <odp/api/traffic_mngr.h>
#include <stdint.h>
typedef enum {
@@ -31,7 +32,7 @@ typedef enum {
typedef uint32_t _odp_int_name_t;
#define ODP_INVALID_NAME 0
-#define _ODP_INT_NAME_LEN 32
+#define _ODP_INT_NAME_LEN (ODP_TM_NAME_LEN - 1)
_odp_int_name_t _odp_int_name_tbl_add(const char *name,
uint8_t name_kind,