summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2021-10-04 11:21:57 +0200
committerDamjan Marion <dmarion@me.com>2021-10-04 18:39:15 +0000
commit482394428b00dfabff4848305d896d2df8046af9 (patch)
tree73e11864276b9f8ba229452858efd9ddb970f315
parentee1ca438b3fd286536dc8a56549c5658a23678c2 (diff)
interface: remove the redundant vec_free on rx_queue_indices
Type: fix vnet_delete_hw_interface() calls vec_free on rx_queue_indices. function vnet_hw_if_unregister_all_rx_queues() is used to free rx_queue_indices which is also called by vnet_delete_hw_interface(). So, second vec_free is redundant. Change-Id: Ibda4be38fd122d33532bb384c97b0b9e5f441134 Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
-rw-r--r--src/vnet/interface.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/vnet/interface.c b/src/vnet/interface.c
index 56eff35e154..7b5d4d6df66 100644
--- a/src/vnet/interface.c
+++ b/src/vnet/interface.c
@@ -1113,7 +1113,6 @@ vnet_delete_hw_interface (vnet_main_t * vnm, u32 hw_if_index)
hash_unset_mem (im->hw_interface_by_name, hw->name);
vec_free (hw->name);
vec_free (hw->hw_address);
- vec_free (hw->rx_queue_indices);
pool_put (im->hw_interfaces, hw);
}