From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=Ql2W93FRwjzfnuzSyRqNMB2moJl+4gAbq6zPsUKDxVk=; b=GIP4gWYuHOf0tzXqGph+mjRSCByVPE6fWPGyOxhZiv3h3gTn2gc7l3vS1rLlZjsiJu 3r4yD9k61RF3PwzyTI4HxD/aqWzDpB93V1yTBYOLe9sLCwz82dnmff1++xtWJ5CnPvze gU3iasQ6/j2Jpa/PWc8YsD4bIn9a9O23ofByPraRY5oONwTwT9yLpcZlMRDO54vSbESY J9ynoSuV0F3KwER51S+aX8cMo1M9DAUKEo66I0P8sC0+rbo8W4wlVzGDMMGG8+QYdl20 4G4IFcfo1jshjfdQBSxJzRV4unhqInQRCvYkLukL5PlMzpui+1RvgXEtPXUEsxRrUvgw xDxg== 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:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=Ql2W93FRwjzfnuzSyRqNMB2moJl+4gAbq6zPsUKDxVk=; b=s6wQZsf3Z53xQ0HI5ybdQwuGkUl/p/v+xrNwKIIh9CYAOCJJcnaaLsnz4F5W3dl4vt Ay4CgPJSfm9aEJwvkUc3BlPvnFgJSMARKV+UQ2JG8qs0xQytM/6VSrXHF6aPMbh9WBPI 8QOmQkahCkNEBv7xwB0N5Hmzb+KMSikEUkVo9CiynyBoAWxvY73lqdw4erNB42AF3n37 rQAvshRvdwuAxlNtLPQ3ifAIGIHz3D1Xy5r/0Bru9v7MUhz9twUskp5bH8q0G/KXq91n B1H1NwMP5ytPEcvOwLsh5vy3iFfFU41NkExuZVYlY6QDzCtnNlbqfJq0FRloodDbjm3q 06eA== X-Gm-Message-State: AODbwcCmxKAm+SzyIVhpDCIzlFEzSA2pE7GPYTlwSrl5ZUro4OkxoBmY YVdDmCAy1kWdH9S2 X-Received: by 10.28.88.3 with SMTP id m3mr5068199wmb.28.1496953886886; Thu, 08 Jun 2017 13:31:26 -0700 (PDT) Received: from bidouze.vm.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id 97sm6382272wrc.5.2017.06.08.13.31.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jun 2017 13:31:25 -0700 (PDT) Date: Thu, 8 Jun 2017 22:31:09 +0200 From: =?iso-8859-1?Q?Ga=EBtan?= Rivet To: Thomas Monjalon Cc: dev@dpdk.org, Ferruh Yigit , users@dpdk.org 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <34816509.TmcHNXKEUC@xps> User-Agent: Mutt/1.5.23 (2014-03-12) Subject: Re: [dpdk-dev] [PATCH v2 0/4] Introduce net bus 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, 08 Jun 2017 20:31:27 -0000 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