aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/devices/devices.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/vnet/devices/devices.h b/src/vnet/devices/devices.h
index c303cb67b40..ac5be229b76 100644
--- a/src/vnet/devices/devices.h
+++ b/src/vnet/devices/devices.h
@@ -153,10 +153,11 @@ vnet_device_input_set_interrupt_pending (vnet_main_t * vnm, u32 hw_if_index,
vlib_node_set_interrupt_pending (vm, hw->input_node_index);
}
-#define foreach_device_and_queue(var,vec) \
- for (var = (vec); var < vec_end (vec); var++) \
- if (clib_smp_swap (&((var)->interrupt_pending), 0) || \
- var->mode == VNET_HW_INTERFACE_RX_MODE_POLLING)
+#define foreach_device_and_queue(var,vec) \
+ for (var = (vec); var < vec_end (vec); var++) \
+ if ((var->mode == VNET_HW_INTERFACE_RX_MODE_POLLING) \
+ || clib_smp_swap (&((var)->interrupt_pending), 0))
+
#endif /* included_vnet_vnet_device_h */