Message ID | 1535539660-20228-13-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522639ljw; Wed, 29 Aug 2018 03:51:43 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaaUJIFLvwDL9k91cv74LUZSP0fPVm8zCBJEa9wbzM8KpkKiNmPTgNywmP9qs425T2N8lBM X-Received: by 2002:a1c:64c:: with SMTP id 73-v6mr3657644wmg.7.1535539903799; Wed, 29 Aug 2018 03:51:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539903; cv=none; d=google.com; s=arc-20160816; b=Tj35SjZJojQfEY/AJlXGghqhV0lgfKlkjhbriBIM7Ahh88LiTJL0LXsRDXoa0XH8S/ bxtgch0FmcWsxfaAx9eJm+rIBQKHGYirnCldAVq7GNXid0LRyDNybora+X0BIvP5XUKu ihqh7poAe0nK75dbJUc//aCjs0gtPDsdjxDDE019Uhs3pW46n3FVo52x7w4/zL2abuDd Jxxfy9y/ztfnsV/XWBezrybxHa2/jCVJ4r7FNwciqjogDFRmXorzHhhDTXiSWfUV9SC2 SY9NM7BolGpsFYuQQvbKH1MVmRw4h5I//gPmwyFZuwaNUQf4IJvcOOo31LZ1FeKk2A2V QaQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=u6lM9PwZndaEgupBOcN8kQgTfq2N3MKoBzYdbAnvX60=; b=FrMR6gRHxWI7TmJgltyXctLLGlL58Ap7DjBTHMbetTbDhNZAIl366h/26HUJqf9Qpb Wsj5UHmmsCFquvhpBhE8mGIh64LM0CeRqb8oZBogE42ga4874Le4bkvsHCVtR86rTjbZ SS/PGA2RlHffaVbeRaF2Xjmp7ZxEMKWcqLMN4r5LI1y3s9cDQhoY94KSY6VA64T3df81 ofCtJX1nM/ZyuRJlJJU9KasAQyxvocnKrFnxy8b9uEj/Aog9IjBkjy2VmXiEx3Rjc0IN cDIibJygh+ckB4cku60ODy0xHv1oQ/lc49ipobc2M1utZQfXuKpTx7mJzBGBm5v2+0UM RNiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=MrKMgasc; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id v6-v6si3000138wmf.175.2018.08.29.03.51.43; Wed, 29 Aug 2018 03:51:43 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=MrKMgasc; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2114A5F17; Wed, 29 Aug 2018 12:50:08 +0200 (CEST) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0045.outbound.protection.outlook.com [104.47.1.45]) by dpdk.org (Postfix) with ESMTP id C985B5911 for <dev@dpdk.org>; Wed, 29 Aug 2018 12:49:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u6lM9PwZndaEgupBOcN8kQgTfq2N3MKoBzYdbAnvX60=; b=MrKMgascTWDsj8q2NsPCEMrT1UKAtZtQBPth6VmBwtNLA8lE1Pd6noEBUdgaOALxVzCyCmB/85opmWIgFUERIw5XKfgioBRNRjGUHHj5/W9gmwuueRmnc5cbTqAJGQTN07Fz9oJCnyKT+IFAvAe24FCrAauQlfuwrtN7rHyMCkk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:58 +0000 From: Hemant Agrawal <hemant.agrawal@nxp.com> To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:39 +0530 Message-Id: <1535539660-20228-13-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c09e683a-da06-4ca1-bda2-08d60d9d2a2f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 3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hYc7yDo8wIJaIAlGL3QQDUEp9o2iujmoa0L7wxup60mawJn6TxPCG7+rB6xkt5niy2Qnih48rFQ6UIXFaW3d3Sh4bYjrNcXM5ZICfhXTMdOEH2ztw9CXveKDxyKuYyOkvhP4U5ObDqxobOOkOpUtA0tYVVFFhHQbxaPqWPpvK2d9VHS6uAc5ZeJkoO008mlV3qjWOgb+iBxiMPKy+fBzqi1jZklIjVb+LlWQovsJ2mHLELjIWaep6Ia9LLb1H+OW0E4NIDn8hpAC/953yCXi8r4qG9DmDWZt7HcaDF6wT8bIzOcIGkjjhYC+zCOs5FrHjPdDBv5RJe6q7ODjSGsI+jKbVQAtY9kRRFZ; 4:tEZqCTq8TVY/kBEcHGxwkNR9VvSPPdP6xR7Us6KeTan+INto8n0ZhzNP3XbQ4xGn1PIHNGqUo7SsYiMuU1iPqt3Xb8hU4dBb5+7BHtPi9TOxSNnw5UJGyde1LRTc/Iz84NleHwh6/SpEh7fpZs19rNQ7UiXBnZ9UWN5P3sC7iZ2wavI89EPs/pdhyZ83g6xoivc5EI8tbKUG8a9GKY1OVdCq+MiAYuVUh4UiFpzKluRdl3mD2v+DdxN5j3ey3oGO2sJOmSHYLIXQnraNwWANN0wjM0xulSmcgvk09cHf9h+g6ERQI2rv8COPwzTLv1Mr X-Microsoft-Antispam-PRVS: <VI1PR0401MB2543FF0C76D5B9B7252C984989090@VI1PR0401MB2543.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(14444005)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:3BRKZWHpipYqfA8CeKVjZXK6vjdrPZoc1KhJf6N?= kiR/B6Hsz2Jfjxf/SbvQXswK/zIQF5o2Yyw6Krd5NpACC7PO1lygSoZHPshUmn7rg2bswxwLLf8pbg69HhQ4G8DnANK2YFkXBs9wJm7KUC7ZBKtIvzffMU0MHkQYKesKqz8szTv9QZW1kW02ST5FuUhrew9LgaEaz0R78YLZm3Llg7Izo2nSjkSZfg+xT/YLPhV23spEUZ2Fk8rVTlZLwtYchX+icQlt3YxntbsfmCLJzp80fd7GRARVwHQHdc0osdx5RCwIOZPLyFsyy+5orsItw9+IhffP+Oe4z388XdMskRHgvLcKLxROYuF8CicVhYGbQIhIRk9ZZ7VGEqJ1AFYDO4O3SmKyAaem4NArr/5mUK7qZpfLhXwhASNjiXRFrY8pH6LTLxalmxTkflQ28xC1LVSSAQyP+eEQdTcGpyo6MzliZLgLyiwgVLpVV0S1erzHhfiCQbu2gIafVv7cW+SwmurCKoKYR64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VbijO0UIClgOVVih87V8O24+Rnlxml/As1R1pfKYYV69VSvJMsaRaIymXJDOrJ7YsHyrZC+FwCD+kwDO9dy15DKuvNcvqHpaoLhX3pLZ7IPt0= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2543; 6:R6dOAlLqqeKNG3V2+UVj9r4On81doihwNqDhc2Fbte4uR+nThj8iFibTqh7h0Ego8bAr5v3vR70y0zixzRZgAJNjGXrHYT9wfCWGqS4U4QOL/nJsROPorp4+W+q8FqOmtW9Y7fX1NqS1ZSgEqKuawemkiFf3P47oGlwRzvpsDVAgOWZbh5MbG7f/H/fBf6iydSLJlc/cLDFuUR/4WeQ6Vwq98D4bFPdbasgFdybxesDhdaesfdeYLO+znZLgnFAmvJ9byzwGgyViTvcCgVEaMq5mQ7paNjJNiKle+0lcqJ82bDO8eHPl8joCsnC2h3eCdTG3hIsxVPnmED4yTRIrjx9iNgzYExlFL/iJsqtIMszsFlzawnLA5ZUbGaz1jbGCq0WD82p3danUogpNk9drRLWBN6E/sb+yCc7qW/3qIwk8/Ew7WXzuHiQOAmiiZxLI+yu8PNeiDPatqfHVKvytNA==; 5:EcRdlDSzVQs38tydcddVenPb/U3pAP6SCabD7PYWEId0jT18doFNiSPHHVguhf619ABFISumz6+WSIvCOnYa2evVnoj6mSdPpQQT8sOV+RqUKmQ8+BDJw4C2zRBrfZItxs5Hgt7owVDL7auZyFAMsIBlspDt6R5F0fQZQKegkvw=; 7:JlTDQQzQm3zsfs65T7cfESl5PVGM9Q9bPzbOcgt0K5Uu1HktG2phncEbGMKvFvdsgDF46qVTiYT/eCxM4P+7pZql/ibuAmVhlKRExlq5GksdVVHmZtQApnXSDoPA5Bsfirbm8q3vvixrQdVKtZc45LjNJ3/omtOM/2ZoBqE7pnQqSYoHwlUx0npXWma26ZSrHOPLldtMMorpqQMYr3Y7af+6lvmzAT9VxUWaP2P9et+t5lRTeMyikCxQaiyCXKJY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2018 10:49:58.0395 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c09e683a-da06-4ca1-bda2-08d60d9d2a2f X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 12/13] bus/dpaa: add check for re-definition in compat X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
driver/net: NXP DPAA driver enhancements
|
expand
|
diff --git a/drivers/bus/dpaa/include/compat.h b/drivers/bus/dpaa/include/compat.h index 92241d2..4122657 100644 --- a/drivers/bus/dpaa/include/compat.h +++ b/drivers/bus/dpaa/include/compat.h @@ -57,8 +57,9 @@ #ifndef __packed #define __packed __rte_packed #endif +#ifndef noinline #define noinline __attribute__((noinline)) - +#endif #define L1_CACHE_BYTES 64 #define ____cacheline_aligned __attribute__((aligned(L1_CACHE_BYTES))) #define __stringify_1(x) #x @@ -75,20 +76,25 @@ printf(fmt, ##args); \ fflush(stdout); \ } while (0) - +#ifndef pr_crit #define pr_crit(fmt, args...) prflush("CRIT:" fmt, ##args) +#endif +#ifndef pr_err #define pr_err(fmt, args...) prflush("ERR:" fmt, ##args) +#endif +#ifndef pr_warn #define pr_warn(fmt, args...) prflush("WARN:" fmt, ##args) +#endif +#ifndef pr_info #define pr_info(fmt, args...) prflush(fmt, ##args) - -#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS -#ifdef pr_debug -#undef pr_debug #endif +#ifndef pr_debug +#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS #define pr_debug(fmt, args...) printf(fmt, ##args) #else #define pr_debug(fmt, args...) {} #endif +#endif #define DPAA_BUG_ON(x) RTE_ASSERT(x) @@ -256,7 +262,9 @@ __bswap_24(uint32_t x) #define be16_to_cpu(x) rte_be_to_cpu_16(x) #define cpu_to_be64(x) rte_cpu_to_be_64(x) +#if !defined(cpu_to_be32) #define cpu_to_be32(x) rte_cpu_to_be_32(x) +#endif #define cpu_to_be16(x) rte_cpu_to_be_16(x) #if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> --- drivers/bus/dpaa/include/compat.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) -- 2.7.4