aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohsin KAZMI <sykazmi@cisco.com>2016-06-20 06:55:25 +0200
committerDamjan Marion <damarion@cisco.com>2016-06-25 17:38:01 +0000
commit63617fc8e456f5803cec9b967a4a880f57755d0b (patch)
tree31fd98651e9ba1f9fbcd138c39e8ce2f0325b239
parent034fccccab19e49dab9283f3d2c625fc403a2594 (diff)
Netmap: Resolve interface state issue
[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>
-rw-r--r--vnet/vnet/devices/netmap/netmap.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/vnet/vnet/devices/netmap/netmap.c b/vnet/vnet/devices/netmap/netmap.c
index ed90862fdf0..653ebc203c0 100644
--- a/vnet/vnet/devices/netmap/netmap.c
+++ b/vnet/vnet/devices/netmap/netmap.c
@@ -197,9 +197,6 @@ netmap_create_if(vlib_main_t * vm, u8 * if_name, u8 * hw_addr_set,
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)