From: Matej Vido Date: Wed, 14 Jun 2017 11:08:57 +0000 (+0200) Subject: net/szedata2: use macro from common library X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=24d0f5aa6bd6132e546c908b3cf750ad8b29bebd;p=dpdk.git net/szedata2: use macro from common library Macro for alignment is defined in the common library. Use macro from the common library in own macro definition. Signed-off-by: Matej Vido --- diff --git a/drivers/net/szedata2/rte_eth_szedata2.h b/drivers/net/szedata2/rte_eth_szedata2.h index 2571d5435a..f25d4c5984 100644 --- a/drivers/net/szedata2/rte_eth_szedata2.h +++ b/drivers/net/szedata2/rte_eth_szedata2.h @@ -38,6 +38,8 @@ #include +#include + /* PCI Vendor ID */ #define PCI_VENDOR_ID_NETCOPE 0x1b26 @@ -58,7 +60,7 @@ * Round 'what' to the nearest larger (or equal) multiple of '8' * (szedata2 packet is aligned to 8 bytes) */ -#define RTE_SZE2_ALIGN8(what) (((what) + ((8) - 1)) & (~((8) - 1))) +#define RTE_SZE2_ALIGN8(what) RTE_ALIGN(what, 8) /*! main handle structure */ struct szedata {