aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-10-10 19:17:58 +0200
committerFlorin Coras <florin.coras@gmail.com>2020-10-12 16:41:49 +0000
commit8c6988797e2a5d6da87fa73fee833ff3776b156b (patch)
tree4a78aa4d2a29527d006d24e5cba000d82e6897b8 /src/plugins
parentc96ac7648efcf3d6d62513de54d96d34378e20fa (diff)
misc: clang-11 and gcc-10 support
clang-11 complains: 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] Type: improvement Change-Id: I2cb6b4fde723a05b42cf33dd8130df074f0362ab Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/dpdk/device/dpdk.h4
-rw-r--r--src/plugins/memif/private.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/dpdk/device/dpdk.h b/src/plugins/dpdk/device/dpdk.h
index 40f9dce0c05..94842a56397 100644
--- a/src/plugins/dpdk/device/dpdk.h
+++ b/src/plugins/dpdk/device/dpdk.h
@@ -356,9 +356,9 @@ typedef struct
u16 device_index;
u8 queue_index;
struct rte_mbuf mb;
+ u8 data[256]; /* First 256 data bytes, used for hexdump */
/* Copy of VLIB buffer; packet data stored in pre_data. */
vlib_buffer_t buffer;
- u8 data[256]; /* First 256 data bytes, used for hexdump */
} dpdk_tx_trace_t;
typedef struct
@@ -367,8 +367,8 @@ typedef struct
u16 device_index;
u16 queue_index;
struct rte_mbuf mb;
- vlib_buffer_t buffer; /* Copy of VLIB buffer; pkt data stored in pre_data. */
u8 data[256]; /* First 256 data bytes, used for hexdump */
+ vlib_buffer_t buffer; /* Copy of VLIB buffer; pkt data stored in pre_data. */
} dpdk_rx_trace_t;
void dpdk_device_setup (dpdk_device_t * xd);
diff --git a/src/plugins/memif/private.h b/src/plugins/memif/private.h
index 4613512041d..187888d5b95 100644
--- a/src/plugins/memif/private.h
+++ b/src/plugins/memif/private.h
@@ -225,9 +225,9 @@ typedef struct
memif_copy_op_t *copy_ops;
u32 *buffers;
+ memif_desc_t desc_template;
/* buffer template */
vlib_buffer_t buffer_template;
- memif_desc_t desc_template;
} memif_per_thread_data_t;
typedef struct