aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2024-08-28 13:02:09 +0200
committerDamjan Marion <damarion@cisco.com>2024-08-28 13:07:41 +0200
commit82aa9a63013b685e26be740403fa81f3cbe4c562 (patch)
tree79df651f7f328a03be5047d64072755bd05eef91 /src/vnet
parent56cefc89e22112071b382fbeb06be839fef1e0ed (diff)
interface: do not update runtime data if input node is not set
Type: improvement Change-Id: Id81d1ac23505a74d3bc6f5d7eddca2be20d39f45 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/interface/runtime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/interface/runtime.c b/src/vnet/interface/runtime.c
index a88a23bd4c9..6428d5ab75b 100644
--- a/src/vnet/interface/runtime.c
+++ b/src/vnet/interface/runtime.c
@@ -72,6 +72,9 @@ vnet_hw_if_update_runtime_data (vnet_main_t *vnm, u32 hw_if_index)
clib_bitmap_t *pending_int = 0;
int last_int = -1;
+ if (node_index == 0)
+ return;
+
log_debug ("update node '%U' triggered by interface %v",
format_vlib_node_name, vm, node_index, hi->name);