[v2,20/21] net/vmxnet3: use C11 alignof
Checks
Commit Message
Replace use of __alignof__(T) with C11 alignof(T) to improve portability
between toolchains.
Signed-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>
---
drivers/net/vmxnet3/vmxnet3_ethdev.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -3,6 +3,7 @@
*/
#include <sys/queue.h>
+#include <stdalign.h>
#include <stdio.h>
#include <errno.h>
#include <stdint.h>
@@ -367,7 +368,7 @@ struct vmxnet3_xstats_name_off {
static const struct rte_mbuf_dynfield vmxnet3_segs_dynfield_desc = {
.name = VMXNET3_SEGS_DYNFIELD_NAME,
.size = sizeof(vmxnet3_segs_dynfield_t),
- .align = __alignof__(vmxnet3_segs_dynfield_t),
+ .align = alignof(vmxnet3_segs_dynfield_t),
};
PMD_INIT_FUNC_TRACE();