[v2,17/21] net/nfp: 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/nfp/nfp_ipsec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
@@ -3,6 +3,8 @@
* All rights reserved.
*/
+#include <stdalign.h>
+
#include "nfp_ipsec.h"
#include <rte_cryptodev.h>
@@ -1348,7 +1350,7 @@ enum nfp_ipsec_df_type {
static const struct rte_mbuf_dynfield pkt_md_dynfield = {
.name = "nfp_ipsec_crypto_pkt_metadata",
.size = sizeof(struct nfp_tx_ipsec_desc_msg),
- .align = __alignof__(struct nfp_tx_ipsec_desc_msg),
+ .align = alignof(struct nfp_tx_ipsec_desc_msg),
};
ctx = rte_zmalloc("security_ctx",