summaryrefslogtreecommitdiffstats
path: root/src/plugins/memif/device.c
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/device.c
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/device.c')
-rw-r--r--src/plugins/memif/device.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/memif/device.c b/src/plugins/memif/device.c
index aa79f884eef..9debf2be204 100644
--- a/src/plugins/memif/device.c
+++ b/src/plugins/memif/device.c
@@ -475,22 +475,6 @@ memif_interface_rx_mode_change (vnet_main_t * vnm, u32 hw_if_index, u32 qid,
}
static clib_error_t *
-memif_interface_admin_up_down (vnet_main_t * vnm, u32 hw_if_index, u32 flags)
-{
- memif_main_t *mm = &memif_main;
- vnet_hw_interface_t *hw = vnet_get_hw_interface (vnm, hw_if_index);
- memif_if_t *mif = pool_elt_at_index (mm->interfaces, hw->dev_instance);
- static clib_error_t *error = 0;
-
- if (flags & VNET_SW_INTERFACE_FLAG_ADMIN_UP)
- mif->flags |= MEMIF_IF_FLAG_ADMIN_UP;
- else
- mif->flags &= ~MEMIF_IF_FLAG_ADMIN_UP;
-
- return error;
-}
-
-static clib_error_t *
memif_subif_add_del_function (vnet_main_t * vnm,
u32 hw_if_index,
struct vnet_sw_interface_t *st, int is_add)