From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by dpdk.org (Postfix) with ESMTP id AB5511CDEB for ; Fri, 6 Apr 2018 00:43:10 +0200 (CEST) Received: by mail-pl0-f66.google.com with SMTP id v5-v6so19373020plo.4 for ; Thu, 05 Apr 2018 15:43:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d/JxBivSSStExfS5chQ85A/c55gSWcZTtD24FIleLf0=; b=Fnw6sSWVcZwuSSbtIeo8foJu0WijRdR3Jth1fdkPQN3/uXZQeO1B4eHMfYnPMIr+Tk Mi1XU8yR6z+OS78fhhY3J460el8kurJ6MRA+hmQyFtrRFVbwePK9oDD1M0jLWyCKQuCJ HAD1FZiuZdANDzVI3UNeGCBOSP/zLh89pdMghU613AyTlpPC01WxX9hIps1Q+xisV01V 6bI6hkAcDC/WoeYKVe5vmQ/BhowTEgsNT95Uyt/ldRwgSmzdmi10SkMdFL3L/ccpWcpZ I4v+HkxNaQJ8LIEtMuuDO8fmZG1WK455nuE5CucVpNkcc+TRZpFvbMBatSvJ2SgcOgga z7YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=d/JxBivSSStExfS5chQ85A/c55gSWcZTtD24FIleLf0=; b=ZeNZA5FtAUk/AqpmobwSUXFgc8fAWUplpvlhq6XuTBNKu4tVHbaCpF5tPEnwcujxao nb/uIRV//7RLksfr4tnYNGl1GAFFpS0OAHgq6PqdYi+eOdwOYkzgY8qmWLWrN5wPM/UX bnJA10Da3sFIY18d0w05P5bjZeHmiCB46L/gMhkiOXQ+rS/FFZj0GmCpcn1zDKmrygcK AcpQ1+dwo4jWQkenUcEhYfhvmBqLaK++kyQd9LUBl2C7qR5rI9EhWXMZ0p18JL0aLUKV gBVoaYcnkIMtQQRRfzxQXLtnLXkiBcjgyz74LbeBbgsbdiSh3QeYSCPOH48chUS97II9 7Vkw== X-Gm-Message-State: ALQs6tD+RNsWNHVa/+Mkv05W7Eqmyg0kgkanJco1xgUS3wFFj1Dnc82y 4CPSBBQzaw+gSYV4tnO/x/48iw== X-Google-Smtp-Source: AIpwx49qOVTuqQR65sBxd3zjfeDnclLSlNOqGmHIL9NqsMg06hy71wnbgWTpPpRkLka5xS2c1WXZiw== X-Received: by 2002:a17:902:6b04:: with SMTP id o4-v6mr6107898plk.332.1522968189892; Thu, 05 Apr 2018 15:43:09 -0700 (PDT) Received: from xeon-e3 (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id b64sm17247340pfl.148.2018.04.05.15.43.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Apr 2018 15:43:09 -0700 (PDT) Date: Thu, 5 Apr 2018 15:43:08 -0700 From: Stephen Hemminger To: Thomas Monjalon Cc: Bruce Richardson , Stephen Hemminger , dev@dpdk.org Message-ID: <20180405154308.00a5a64a@xeon-e3> In-Reply-To: <1792191.Hreas2QKXW@xps> References: <20180405191305.26813-1-sthemmin@microsoft.com> <1607753.vleKbttEpa@xps> <20180405210734.GA85168@bricha3-MOBL.ger.corp.intel.com> <1792191.Hreas2QKXW@xps> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 2/3] usertools: add hv_uio_setup script 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: , X-List-Received-Date: Thu, 05 Apr 2018 22:43:10 -0000 On Thu, 05 Apr 2018 23:10:33 +0200 Thomas Monjalon wrote: > 05/04/2018 23:07, Bruce Richardson: > > On Thu, Apr 05, 2018 at 10:43:39PM +0200, Thomas Monjalon wrote: > > > 05/04/2018 21:13, Stephen Hemminger: > > > > Small script to rebind netvsc kernel device to Hyper-V > > > > networking PMD. It could be integrated in dpdk-bind, but dpdk-bind > > > > is focused on PCI, and that would get messy. > > > > > > > > Eventually, this functionality will be built into netvsc driver > > > > (see vdev_netvsc as an example). > > > > > > I believe we should avoid creating such script. > > > The direction to go, for hotplug, is to remove dpdk-devbind.py, > > > and implement kernel binding in PMDs (with EAL helpers). > > > > > I'm not convinced at all that that is the direction to go. I instead would > > prefer to see all binding happen outside DPDK. I believe having udev or > > similar manage bindings, set up via e.g driverctl[1], is a far better path. > > This is a system admin tool, and only for Linux. > Having the binding logic inside DPDK, allows the application to control > how hotplug behave. > > What about using driverctl? That solution would work for both PCI and VMBUS, but not sure how widely adopted it is by distributions.