Remove #if DPDK == 0, to eliminate a data structure size mismatch 02/1902/2
authorDave Barach <[email protected]>
Thu, 7 Jul 2016 14:35:56 +0000 (10:35 -0400)
committerDamjan Marion <[email protected]>
Thu, 7 Jul 2016 16:05:59 +0000 (16:05 +0000)
Otherwise, e.g. the ip4/6_main_t's change size between PLATFORM=vpp
and PLATFORM=vpp_lite. That, in turn, makes it far easier to build
broken plugins.

Change-Id: Ic962d75b170eee698de29c4e29849ce73d27caad
Signed-off-by: Dave Barach <[email protected]>
vlib/vlib/buffer_funcs.h

index ed96df8..d3ad89e 100644 (file)
@@ -515,7 +515,8 @@ typedef struct {
   /* Vector of packet data. */
   u8 * packet_data;
 
-#if DPDK == 0
+  /* Note: the next three fields are unused if DPDK == 1 */
+
   /* Number of buffers to allocate in each call to physmem
      allocator. */
   u32 min_n_buffers_each_physmem_alloc;
@@ -524,7 +525,6 @@ typedef struct {
   u32 free_list_index;
 
   u32 * free_buffers;
-#endif
 } vlib_packet_template_t;
 
 void vlib_packet_template_get_packet_helper (vlib_main_t * vm,