summaryrefslogtreecommitdiffstats
path: root/src/vnet/interface
diff options
context:
space:
mode:
authorMohammed Hawari <mohammed@hawari.fr>2020-12-22 15:12:27 +0100
committerDamjan Marion <dmarion@me.com>2021-01-21 15:59:38 +0000
commit313380f9501ad36637d32dd9801a75c1b668fdc3 (patch)
treecb8364689becca1b0dfede9eda99aa4fa5a473bc /src/vnet/interface
parent91f4a9795561ced2c457b2d24c725995f95fc9a8 (diff)
interface: fix vnet_hw_if_update_runtime_data
Take into account pending interrupts when resizing rxq_interrupts Type: fix Signed-off-by: Mohammed Hawari <mohammed@hawari.fr> Change-Id: I64f6f4404738c90ed5a2c10d72c7ce59cf96a644
Diffstat (limited to 'src/vnet/interface')
-rw-r--r--src/vnet/interface/runtime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/interface/runtime.c b/src/vnet/interface/runtime.c
index c1b096f3c86..f4c09beffd7 100644
--- a/src/vnet/interface/runtime.c
+++ b/src/vnet/interface/runtime.c
@@ -193,6 +193,7 @@ vnet_hw_if_update_runtime_data (vnet_main_t *vnm, u32 hw_if_index)
{
clib_interrupt_clear (in, int_num);
pending_int = clib_bitmap_set (pending_int, int_num, 1);
+ last_int = clib_max (last_int, int_num);
}
}