From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2E8C1A0C41; Thu, 16 Sep 2021 12:39:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1235D40E78; Thu, 16 Sep 2021 12:39:48 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id A4F6D4003F for ; Thu, 16 Sep 2021 12:39:45 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10108"; a="283532512" X-IronPort-AV: E=Sophos;i="5.85,298,1624345200"; d="scan'208";a="283532512" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2021 03:39:44 -0700 X-IronPort-AV: E=Sophos;i="5.85,298,1624345200"; d="scan'208";a="553816249" Received: from bricha3-mobl.ger.corp.intel.com ([10.252.5.206]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 16 Sep 2021 03:39:42 -0700 Date: Thu, 16 Sep 2021 11:39:39 +0100 From: Bruce Richardson To: Anatoly Burakov Cc: dev@dpdk.org Message-ID: References: <25dd76eca01ec57d64be9c0a78ac2752f602984f.1631788595.git.anatoly.burakov@intel.com> <67c4e47e511558e2442c73c57c1764df656720e3.1631788595.git.anatoly.burakov@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <67c4e47e511558e2442c73c57c1764df656720e3.1631788595.git.anatoly.burakov@intel.com> Subject: Re: [dpdk-dev] [PATCH v1 2/2] vfio: add errno on unsupported platforms X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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" On Thu, Sep 16, 2021 at 10:36:38AM +0000, Anatoly Burakov wrote: > Currently, when code is running on FreeBSD (or using fallback Linux > implementation), there is no way to distinguish between a geniune error > and a "VFIO is unsupported" error. Fix the dummy implemnetations to also > set the rte_errno flag. > > Signed-off-by: Anatoly Burakov > --- > lib/eal/freebsd/eal.c | 12 ++++++++++++ > lib/eal/linux/eal_vfio.c | 12 ++++++++++++ > 2 files changed, 24 insertions(+) > Acked-by: Bruce Richardson