MTU: Software interface / Per-protocol MTU support
[vpp.git] / src / vnet / ethernet / interface.c
index 4e1d081..b3ea983 100644 (file)
@@ -303,8 +303,8 @@ ethernet_register_interface (vnet_main_t * vnm,
 
   /* Standard default ethernet MTU. */
   vnet_sw_interface_set_mtu (vnm, hi->sw_if_index, 9000);
+
   clib_memcpy (ei->address, address, sizeof (ei->address));
-  vec_free (hi->hw_address);
   vec_add (hi->hw_address, address, sizeof (ei->address));
 
   if (error)