From patchwork Wed Jun 14 11:08:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matej Vido X-Patchwork-Id: 25311 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 3FCB87CE2; Wed, 14 Jun 2017 13:09:05 +0200 (CEST) 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cesnet.cz; s=office2; t=1497438542; bh=w5NQOKUQrSCwS1CUuz+1WUnOjxGctMDRuUVAEeo6DGo=; h=From:To:Subject:Date; b=mlkrDPWIAVXT4O0Z/p93X3D+A1VFDE/BgdbvQTEu3k+XCCZ/Y6yhkVOLrH7TSOFhk 1x3MwocDYLlwyHLo9ZfxSeo1NnKMU1krDFNaLMxb5DNEnJQYtuwt7FgXxXbksnE8H4 9POK7B3i1NFXAqHQI5PBkltOjT7zHrf15GWoR/Hg= From: Matej Vido To: dev@dpdk.org Date: Wed, 14 Jun 2017 13:08:57 +0200 Message-Id: <1497438537-31103-1-git-send-email-vido@cesnet.cz> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] net/szedata2: use macro from common library X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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 {