summaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/private.h
diff options
context:
space:
mode:
authorEd Warnicke <hagbard@gmail.com>2021-01-19 17:56:24 -0600
committerDamjan Marion <dmarion@me.com>2021-01-20 17:59:11 +0000
commitacaee3d36e141b096ff0f04ca213283f217ca173 (patch)
tree41f04218ce12a557f18a5634599c5a8779e293e7 /src/plugins/memif/private.h
parenta4b0541f64eef02fa0d003d8f831cfdeb45d3668 (diff)
memif: fix vpp to go link up immediately on admin up
Type: improvement Previously, memif would check every 3 seconds to see if an interface had gone admin up. Now it does as soon as admin up occurs. Signed-off-by: Ed Warnicke <hagbard@gmail.com> Change-Id: I808699cd5980fa162c34ac977f43d00ed6b67115 Signed-off-by: Ed Warnicke <hagbard@gmail.com>
Diffstat (limited to 'src/plugins/memif/private.h')
-rw-r--r--src/plugins/memif/private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/memif/private.h b/src/plugins/memif/private.h
index 187888d5b95..daa96d0f412 100644
--- a/src/plugins/memif/private.h
+++ b/src/plugins/memif/private.h
@@ -259,6 +259,7 @@ typedef enum
{
MEMIF_PROCESS_EVENT_START = 1,
MEMIF_PROCESS_EVENT_STOP = 2,
+ MEMIF_PROCESS_EVENT_ADMIN_UP_DOWN = 3,
} memif_process_event_t;
typedef struct
@@ -285,6 +286,8 @@ int memif_socket_filename_add_del (u8 is_add, u32 sock_id,
int memif_create_if (vlib_main_t * vm, memif_create_if_args_t * args);
int memif_delete_if (vlib_main_t * vm, memif_if_t * mif);
clib_error_t *memif_plugin_api_hookup (vlib_main_t * vm);
+clib_error_t *memif_interface_admin_up_down (vnet_main_t *vnm, u32 hw_if_index,
+ u32 flags);
static_always_inline void *
memif_get_buffer (memif_if_t * mif, memif_ring_t * ring, u16 slot)