BIER neighbor stats
[vpp.git] / src / vnet / udp / udp_encap.c
index 8005fa5..914680f 100644 (file)
@@ -81,7 +81,7 @@ udp_encap_add_and_lock (u32 id,
     {
       u8 pfx_len = 0;
 
-      pool_get (udp_encap_pool, ue);
+      pool_get_aligned (udp_encap_pool, ue, CLIB_CACHE_LINE_BYTES);
       uei = ue - udp_encap_pool;
 
       vlib_validate_combined_counter (&(udp_encap_counters), uei);
@@ -599,7 +599,7 @@ udp_encap_walk (udp_encap_walk_cb_t cb, void *ctx)
   /* *INDENT-OFF* */
   pool_foreach_index(uei, udp_encap_pool,
   ({
-    if (!cb(uei, ctx))
+    if (WALK_STOP == cb(uei, ctx))
       break;
   }));
   /* *INDENT-ON* */