From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9B0F9A00B8; Sun, 27 Oct 2019 23:36:51 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 14D351BF24; Sun, 27 Oct 2019 23:36:42 +0100 (CET) Received: from 1wt.eu (wtarreau.pck.nerim.net [62.212.114.60]) by dpdk.org (Postfix) with ESMTP id 0A0EA1C11A for ; Fri, 25 Oct 2019 17:03:46 +0200 (CEST) Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id x9PF3jbx023942; Fri, 25 Oct 2019 17:03:45 +0200 Date: Fri, 25 Oct 2019 17:03:45 +0200 From: Willy Tarreau To: Andy Lutomirski Cc: dev@dpdk.org, Thomas Gleixner , Peter Zijlstra , LKML Message-ID: <20191025150345.GE23687@1wt.eu> References: <20191025064225.GA22917@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-Mailman-Approved-At: Sun, 27 Oct 2019 23:36:29 +0100 Subject: Re: [dpdk-dev] Please stop using iopl() in DPDK 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" On Fri, Oct 25, 2019 at 07:45:47AM -0700, Andy Lutomirski wrote: > But, for uses like DPDK, /sys/.../resource0 seems like a *far* better > API, since it actually uses the kernel's concept of which io range > corresponds to which device instead of hoping that the mappings don't > change out from under user code. And it has the added benefit that > it's restricted to a single device. For certain such uses with real device management, very likely yes. It's just that in a number of programs using hard-coded ports to access stupid devices with no driver (and often even no name), such an approach could be overkill, and these are typically the annoyingly itchy ones which could require your config entry to remain enabled. I'll add to my todo list to have a look at this as time permits. Cheers, Willy