From: Pablo de Lara Date: Sun, 2 Jul 2017 05:41:06 +0000 (+0100) Subject: cryptodev: remove useless alignment X-Git-Tag: spdx-start~2694 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=552a7a32b4e1dc848656d40b8c62a3fbedee08ce;p=dpdk.git cryptodev: remove useless alignment rte_crypto_op and rte_crypto_sym_op structures were marked as cache aligned. However, since these structures are always initialized in a mempool, this alignment is useless, since the mempool forces the alignment of its objects. Signed-off-by: Pablo de Lara Acked-by: Declan Doherty Acked-by: Akhil Goyal Acked-by: Fiona Trahe --- diff --git a/lib/librte_cryptodev/rte_crypto.h b/lib/librte_cryptodev/rte_crypto.h index ae2d48a29a..4695229e69 100644 --- a/lib/librte_cryptodev/rte_crypto.h +++ b/lib/librte_cryptodev/rte_crypto.h @@ -127,7 +127,7 @@ struct rte_crypto_op { struct rte_crypto_sym_op sym[0]; /**< Symmetric operation parameters */ }; /**< operation specific parameters */ -} __rte_cache_aligned; +}; /** * Reset the fields of a crypto operation to their default values. diff --git a/lib/librte_cryptodev/rte_crypto_sym.h b/lib/librte_cryptodev/rte_crypto_sym.h index 5950e866c6..1e7f8629f9 100644 --- a/lib/librte_cryptodev/rte_crypto_sym.h +++ b/lib/librte_cryptodev/rte_crypto_sym.h @@ -640,7 +640,7 @@ struct rte_crypto_sym_op { } aad; /**< Additional authentication parameters */ } auth; -} __rte_cache_aligned; +}; /**