Replace use of __alignof__(T) with C11 alignof(T) to improve portability
between toolchains.

Signed-off-by: Tyler Retzlaff <roret...@linux.microsoft.com>
---
 drivers/net/nfp/nfp_ipsec.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/net/nfp/nfp_ipsec.c b/drivers/net/nfp/nfp_ipsec.c
index 4529473..6e9bb06 100644
--- a/drivers/net/nfp/nfp_ipsec.c
+++ b/drivers/net/nfp/nfp_ipsec.c
@@ -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",
-- 
1.8.3.1

Reply via email to