From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Burakov, Anatoly" Subject: Re: [RFC v2 1/9] usertools: add DPDK config lib python library Date: Fri, 16 Nov 2018 14:37:38 +0000 Message-ID: References: <20181115164508.6c99877d@shemminger-XPS-13-9360> <59AF69C657FD0841A61C55336867B5B0726E11E8@IRSMSX103.ger.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Stephen Hemminger , dev , "Mcnamara, John" , "De Lara Guarch, Pablo" , "Hunt, David" , "Awal, Mohammad Abdul" , "thomas@monjalon.net" , "Yigit, Ferruh" To: "Richardson, Bruce" , "Wiles, Keith" Return-path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 4E63691 for ; Fri, 16 Nov 2018 15:37:42 +0100 (CET) In-Reply-To: <59AF69C657FD0841A61C55336867B5B0726E11E8@IRSMSX103.ger.corp.intel.com> Content-Language: en-US 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 16-Nov-18 2:13 PM, Richardson, Bruce wrote: > > >> -----Original Message----- >> From: Wiles, Keith >> Sent: Friday, November 16, 2018 2:10 PM >> To: Burakov, Anatoly >> Cc: Stephen Hemminger ; dev ; >> Mcnamara, John ; Richardson, Bruce >> ; De Lara Guarch, Pablo >> ; Hunt, David ; >> Awal, Mohammad Abdul ; thomas@monjalon.net; >> Yigit, Ferruh >> Subject: Re: [dpdk-dev] [RFC v2 1/9] usertools: add DPDK config lib python >> library >> >> >> >>> On Nov 16, 2018, at 5:49 AM, Burakov, Anatoly >> wrote: >>> >>> On 16-Nov-18 12:45 AM, Stephen Hemminger wrote: >>>> On Thu, 15 Nov 2018 15:47:13 +0000 >>>> Anatoly Burakov wrote: >>>>> This is a placeholder for Python library abstracting away many of >>>>> mundane details DPDK configuration scripts have to deal with. We >>>>> need __init__.py file to make the subdirectory a package so that >>>>> Python scripts in usertools/ can find their dependencies. >>>>> >>>>> Signed-off-by: Anatoly Burakov >>>>> --- >>>>> usertools/DPDKConfigLib/__init__.py | 0 >>>>> 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 >>>>> usertools/DPDKConfigLib/__init__.py >>>>> >>>>> diff --git a/usertools/DPDKConfigLib/__init__.py >>>>> b/usertools/DPDKConfigLib/__init__.py >>>>> new file mode 100644 >>>>> index 000000000..e69de29bb >>>> Doing this a better than current code, but can we go farther? >>>> I would like DPDK to get out of doing binds directly and switch to >>>> using driverctl which also handles persistent rebind on reboot. >>> >>> Wasn't the objection that it's not available everywhere? (for the >>> record, i have no horse in the race - i don't much care exactly how >>> it's done) >> >> If it works on FreeBSD and Linux then I am all for it. On windows does it >> support this method too? >>> > > Binding and unbinding is completely different on each OS. FreeBSD has no overlap > of scripts with Linux, so replacing some of our tools with driverctl won't affect > that OS. > > /Bruce > ...however, we could abstract that away in our tools, and use OS-appropriate tools independently of what we're running on. There could still be value in fixing devbind everyone knows and love to work on all OS's without too much hassle :) -- Thanks, Anatoly