From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matej Vido Subject: [PATCH] net/szedata2: use macro from common library Date: Wed, 14 Jun 2017 13:08:57 +0200 Message-ID: <1497438537-31103-1-git-send-email-vido@cesnet.cz> To: dev@dpdk.org Return-path: Received: from office2.cesnet.cz (office2.cesnet.cz [195.113.144.244]) by dpdk.org (Postfix) with ESMTP id 4AE597CDC for ; Wed, 14 Jun 2017 13:09:02 +0200 (CEST) Received: from pcvido.fit.vutbr.cz (unknown [IPv6:2001:67c:1220:80c:f8f4:f055:211e:fe80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by office2.cesnet.cz (Postfix) with ESMTPSA id 98EF320005 for ; Wed, 14 Jun 2017 13:09:02 +0200 (CEST) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Macro for alignment is defined in the common library. Use macro from the common library in own macro definition. Signed-off-by: Matej Vido --- drivers/net/szedata2/rte_eth_szedata2.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/szedata2/rte_eth_szedata2.h b/drivers/net/szedata2/rte_eth_szedata2.h index 2571d54..f25d4c5 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 { -- 1.8.4