rdma: fix clang-11 build 26/29626/2
authorDamjan Marion <damarion@cisco.com>
Mon, 26 Oct 2020 09:05:29 +0000 (10:05 +0100)
committerOle Tr�an <otroan@employees.org>
Mon, 26 Oct 2020 14:16:15 +0000 (14:16 +0000)
/vpp/src/plugins/rdma/rdma.h:203:17: error: field 'buffer_template' with variable sized type 'vlib_buffer_t' not at the end of a struct or class is a GNU extension [-Werror,-Wgnu-variable-sized-type-not-at-end]
  vlib_buffer_t buffer_template;

Type: fix
Change-Id: I4661839f262e01fe274a2ee7b3cb70f9bc6b7c62
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/rdma/rdma.h

index db8f740..e6d0abc 100644 (file)
@@ -200,9 +200,9 @@ typedef struct
     u16x8 cqe_flags8[VLIB_FRAME_SIZE / 8];
     u16x16 cqe_flags16[VLIB_FRAME_SIZE / 16];
   };
-  vlib_buffer_t buffer_template;
   u32 current_segs[VLIB_FRAME_SIZE];
   u32 to_free_buffers[VLIB_FRAME_SIZE];
+  vlib_buffer_t buffer_template;
 } rdma_per_thread_data_t;
 
 typedef struct