diff options
author | Damjan Marion <damarion@cisco.com> | 2022-04-06 11:07:35 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2022-04-06 10:52:42 +0000 |
commit | 8271dfdff3cf65e3b077e149d4600bd90d2b4b03 (patch) | |
tree | 81c02cedbce9d1c8b67815110e573eae4923f0dc /src/vnet/interface.c | |
parent | 6e061e784d85c8aedea8987c98c86ec7c1b84321 (diff) |
interface: unregister node counters on interface delete
Type: fix
Change-Id: I2562ae5833b542c29bcd5025a9a6756e5de95a42
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/interface.c')
-rw-r--r-- | src/vnet/interface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/interface.c b/src/vnet/interface.c index 9ce7f6f9aef..dd4399864f7 100644 --- a/src/vnet/interface.c +++ b/src/vnet/interface.c @@ -1151,6 +1151,8 @@ vnet_delete_hw_interface (vnet_main_t * vnm, u32 hw_if_index) "interface-%d-output-deleted", hw_if_index); vlib_node_rename (vm, hw->tx_node_index, "interface-%d-tx-deleted", hw_if_index); + vlib_unregister_errors (vm, hw->output_node_index); + vlib_unregister_errors (vm, hw->tx_node_index); vec_add2 (im->deleted_hw_interface_nodes, dn, 1); dn->tx_node_index = hw->tx_node_index; dn->output_node_index = hw->output_node_index; |