From c322d05e95fe19ff91dc4b44b83beef3088f5523 Mon Sep 17 00:00:00 2001 From: Michal Mazur Date: Fri, 11 Aug 2017 20:40:47 +0200 Subject: 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 --- src/plugins/odp/odp_packet.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/odp/odp_packet.h') 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; -- cgit 1.2.3-korg