From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id F2C94C476 for ; Thu, 28 Jan 2016 15:00:09 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id l66so26565315wml.0 for ; Thu, 28 Jan 2016 06:00:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:organization:user-agent :in-reply-to:references:mime-version:content-transfer-encoding :content-type; bh=yL/sO+t7xUR18JVmV7t1appwGzbf2ictkFjIJGKUCms=; b=ujIY7Id83718C4HH9ACGcvPA1R/+iIWMljjnWdQvnci5CZwAeHUl/UXs9E5/Tnj2rI umgGTvXecZIrGohtjynu4Dn1nf+iDqg+t8dpxPalb0e+3jyUCCxeuu5xDDPrytB+sEhR pha+L7RLMaPr+qeclKSmGIyEEHTb1cIyTZyaGQYWLthtfLFQDzmRuDyaCxWh6RVstkSW zHO1Rguw6F3kYWCHmiMG7F+LkjQ3x5HfliSRZyPFHeN5SOITuY4fNXTEDypxWPO6Wb3A 7PAU96MGWqoGzcBArJPpUXYuzhrF8tgiHUR5W4hC2H63LJ+sUVKcYI7OvwJ5GZmZHeOV vWbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:organization :user-agent:in-reply-to:references:mime-version :content-transfer-encoding:content-type; bh=yL/sO+t7xUR18JVmV7t1appwGzbf2ictkFjIJGKUCms=; b=CK2uhvdZ0FpLqYWdDWPytpNHLFAl0O/Z33z7MXTTutYe4BQSwIOFfaPLRclSkwVUPZ mmsGPiXUA8obWUwKYET4l1NHue1z62XKe4ON5btzSHkmjYvm60q7yCuYvZkv+lYrg43x NwKKXYJKq8S2w/vu1urYierRhk/aJoUkkyGjEOgPrXAcFRX4enN2IGuun1Lv1Bi7eb30 HUsqOG9BTv/E2uf4Q2s3C7kjCHA+UpYgGweykmnJkqUn0qzBVtpKgpPQk2Y29xoklpvM BAuKFG1k/Grj9c+BDlSEXVL6M09uSwPW6Yr6PsvvrSZSkS5MgBK56Gr30Nw53cjgXnx7 U5qA== X-Gm-Message-State: AG10YORVPabozVijCkBLs31Wq7jZRD2MWnO/VUgBPLADz25hV90ns9ZNQuUWh4HUopdrqLxe X-Received: by 10.194.134.105 with SMTP id pj9mr3711360wjb.10.1453989609810; Thu, 28 Jan 2016 06:00:09 -0800 (PST) Received: from xps13.localnet (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id v191sm3037595wme.1.2016.01.28.06.00.09 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Jan 2016 06:00:09 -0800 (PST) From: Thomas Monjalon To: Anatoly Burakov Date: Thu, 28 Jan 2016 14:58:58 +0100 Message-ID: <26948068.xeVA9KiJZ0@xps13> Organization: 6WIND User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <1453982274-16717-1-git-send-email-anatoly.burakov@intel.com> References: <1453913438-22991-1-git-send-email-anatoly.burakov@intel.com> <1453982274-16717-1-git-send-email-anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v6] vfio: Support for no-IOMMU mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jan 2016 14:00:10 -0000 2016-01-28 11:57, Anatoly Burakov: > +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0) Why not #ifndef VFIO_NOIOMMU_IOMMU? It would avoid some backport issue. > +#define RTE_VFIO_NOIOMMU 8 > +#else > +#define RTE_VFIO_NOIOMMU VFIO_NOIOMMU_IOMMU > +#endif