From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet Subject: Re: [PATCH v2 0/4] Introduce net bus Date: Thu, 8 Jun 2017 22:31:09 +0200 Message-ID: <20170608203109.GA29091@bidouze.vm.6wind.com> References: <34816509.TmcHNXKEUC@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, Ferruh Yigit , users@dpdk.org To: Thomas Monjalon Return-path: Received: from mail-wm0-f42.google.com (mail-wm0-f42.google.com [74.125.82.42]) by dpdk.org (Postfix) with ESMTP id 764FD2BA2 for ; Thu, 8 Jun 2017 22:31:27 +0200 (CEST) Received: by mail-wm0-f42.google.com with SMTP id n195so38267762wmg.1 for ; Thu, 08 Jun 2017 13:31:27 -0700 (PDT) Content-Disposition: inline In-Reply-To: <34816509.TmcHNXKEUC@xps> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi Thomas, On Thu, Jun 08, 2017 at 09:31:23AM +0200, Thomas Monjalon wrote: > I'm sorry, I do not understand the description. > Please start with a real problem statement and explain how it is solved. > Thanks Sure. Currently, we probe devices by using ./usertools/dpkd-devbind.py -b igb_uio 00:02.0 ./build/app/whatever -w 00:02.0 ./usertools/dpkd-devbind.py -b ixgbe 00:02.0 Wouldn't it be nice to be able to: ./build/app/whatever -w ens2 Instead? Many things are missing for this. This PoC only shows the simplest case with a bifurcated driver, but the concept is there. This bus is an intepretation layer to transform a kernel netdevice name into a usable DPDK device, which should give enough info about its dependencies: bus, IO module, resource management policies, etc... to prepare it. I plan to add binding / unbinding afterward, and I wanted to propose this early enough as there were talks of kernel control plane, and this could be a building block to this general direction. Auto-unbind assumes a clean exit from the DPDK application. This might be a big departure from current assumptions, where buses very seldom plan for ending operations. i.e. rte_bus has scan and probe, but no remove API. While unplug should soon exist, this is a crude workaround. -- Gaëtan Rivet 6WIND