aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/dev_octeon/roc_helper.c
diff options
context:
space:
mode:
authorMonendra Singh Kushwaha <kmonendra@marvell.com>2024-02-28 13:09:06 +0530
committerMonendra Singh Kushwaha <kmonendra@marvell.com>2024-06-06 08:51:01 +0000
commit2ab34c8cb091421492c6395ef87a5ea0933d080f (patch)
tree2941a9cf3375665ebff0c3c7174184a01be30128 /src/plugins/dev_octeon/roc_helper.c
parent1121f0067c0371c95c521da8563953a27ec47f4c (diff)
octeon: add support for Marvell Octeon9 SoC
Type: feature Signed-off-by: Monendra Singh Kushwaha <kmonendra@marvell.com> Change-Id: I5db58b8ec41b45596bc03b4a336a184c17871294 (cherry picked from commit a93c85a5793852b6edda20bc1100fa9fabd0eb29)
Diffstat (limited to 'src/plugins/dev_octeon/roc_helper.c')
-rw-r--r--src/plugins/dev_octeon/roc_helper.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/plugins/dev_octeon/roc_helper.c b/src/plugins/dev_octeon/roc_helper.c
index f10c2cb578b..16e0a871a9d 100644
--- a/src/plugins/dev_octeon/roc_helper.c
+++ b/src/plugins/dev_octeon/roc_helper.c
@@ -49,6 +49,12 @@ oct_plt_get_thread_index (void)
return __os_thread_index;
}
+static u64
+oct_plt_get_cache_line_size (void)
+{
+ return CLIB_CACHE_LINE_BYTES;
+}
+
static void
oct_drv_physmem_free (vlib_main_t *vm, void *mem)
{
@@ -178,4 +184,5 @@ oct_plt_init_param_t oct_plt_init_param = {
.oct_plt_spinlock_unlock = oct_plt_spinlock_unlock,
.oct_plt_spinlock_trylock = oct_plt_spinlock_trylock,
.oct_plt_get_thread_index = oct_plt_get_thread_index,
+ .oct_plt_get_cache_line_size = oct_plt_get_cache_line_size,
};