[VPP-155]: There is inconsistency in the netmap interface
state for software interface state and hardware interface
state. This patch resolves that issue.
Change-Id: I92199e117f919bd985670366a6d3b7753e40659c
Signed-off-by: Mohsin KAZMI <sykazmi@cisco.com>
sw = vnet_get_hw_sw_interface (vnm, nif->hw_if_index);
nif->sw_if_index = sw->sw_if_index;
- vnet_hw_interface_set_flags (vnm, nif->hw_if_index,
- VNET_HW_INTERFACE_FLAG_LINK_UP);
-
mhash_set_mem (&nm->if_index_by_host_if_name, if_name, &nif->if_index, 0);
if (sw_if_index)