aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Lei <peterlei@cisco.com>2016-03-10 04:03:36 -0500
committerGerrit Code Review <gerrit@fd.io>2016-04-15 15:04:48 +0000
commit007622cfd6ffea9ab5a487e2b91f92f4a13b2873 (patch)
treec628a1c485e33ae6ad1b013e09c5b6b445e108f9
parent51c02a477811444e7ef3091b81100974d68afc63 (diff)
af_packet: clear bitmap entries when processing input
Need to clear the bitmap entry when processing each input file descriptor. This becomes an issue on interface deletion. A crash occurs due to assertion in a debug image https://gerrit.fd.io/r/#/c/615/ - removed the code when this was set again, but the bitmap needs to be cleared Change-Id: I7cccb9bf8b9b2eb5a7f60ecda7530784a9512116 Signed-off-by: Peter Lei <peterlei@cisco.com>
-rw-r--r--vnet/vnet/devices/af_packet/node.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vnet/vnet/devices/af_packet/node.c b/vnet/vnet/devices/af_packet/node.c
index 9c1c4a32238..ceb89efad30 100644
--- a/vnet/vnet/devices/af_packet/node.c
+++ b/vnet/vnet/devices/af_packet/node.c
@@ -260,6 +260,7 @@ af_packet_input_fn (vlib_main_t * vm, vlib_node_runtime_t * node,
clib_bitmap_foreach (i, apm->pending_input_bitmap,
({
+ clib_bitmap_set (apm->pending_input_bitmap, i, 0);
n_rx_packets += af_packet_device_input_fn(vm, node, frame, i);
}));