aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/odp/odp_packet.h
diff options
context:
space:
mode:
authorMichal Mazur <mkm@semihalf.com>2017-08-11 20:40:47 +0200
committerMichal Mazur <mkm@semihalf.com>2017-12-14 15:18:05 +0100
commitc322d05e95fe19ff91dc4b44b83beef3088f5523 (patch)
tree8d004b335f3c180ed40600061be92f1a910e81a6 /src/plugins/odp/odp_packet.h
parent99e97518e5fca260cb4e410838cc0c1ef70ac42d (diff)
Move odp_packet_main structure to shared memory.
This structure contains data shared among multiple threads and must be globally accessible. Change-Id: Ibde8222e9ed3f61561f7902750a1716da5c0bd81 Signed-off-by: Michal Mazur <mkm@semihalf.com>
Diffstat (limited to 'src/plugins/odp/odp_packet.h')
-rwxr-xr-xsrc/plugins/odp/odp_packet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/odp/odp_packet.h b/src/plugins/odp/odp_packet.h
index c3906a49..e511f404 100755
--- a/src/plugins/odp/odp_packet.h
+++ b/src/plugins/odp/odp_packet.h
@@ -43,7 +43,7 @@ typedef struct
u32 if_count;
} odp_packet_main_t;
-odp_packet_main_t odp_packet_main;
+extern odp_packet_main_t *odp_packet_main;
extern vnet_device_class_t odp_packet_device_class;
extern vlib_node_registration_t odp_packet_input_node;