Fixed speculative enqueue for buffer cloning 01/8501/1
authorAlberto Compagno <[email protected]>
Fri, 22 Sep 2017 09:04:50 +0000 (11:04 +0200)
committerAlberto Compagno <[email protected]>
Fri, 22 Sep 2017 09:04:50 +0000 (11:04 +0200)
Change-Id: I163b923ff01ba1d347777e4937d4fa6218350434
Signed-off-by: Alberto Compagno <[email protected]>
cicn-plugin/cicn/node.c

index 17e7677..bd64cbc 100644 (file)
@@ -675,14 +675,6 @@ icnfwd_node_fn (vlib_main_t * vm,
 
                      vnet_buffer (b0)->sw_if_index[VLIB_TX] = ~0;
 
-                     if (i == (clone_count - 1))
-                       {
-                         /* Last packet - drop out of the loop, let the
-                          * transit path finish with 'b0' now
-                          */
-                         break;
-                       }
-
                      /* Rewrite ip and udp headers */
 
                      ip0->src_address.as_u32 =