From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v6 1/2] tools: Add support for handling built-in kernel modules Date: Thu, 28 Jan 2016 14:52:12 +0100 Message-ID: <5908931.I9BmIPpWAU@xps13> References: <1449667198-27218-1-git-send-email-Kamil.Rytarowski@caviumnetworks.com> <1872674.ygjbT6ghrC@xps13> <56A9F8D3.3010605@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: Kamil Rytarowski Return-path: Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by dpdk.org (Postfix) with ESMTP id 64D43C45A for ; Thu, 28 Jan 2016 14:53:24 +0100 (CET) Received: by mail-wm0-f44.google.com with SMTP id 128so11530329wmz.1 for ; Thu, 28 Jan 2016 05:53:24 -0800 (PST) In-Reply-To: <56A9F8D3.3010605@caviumnetworks.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2016-01-28 12:17, Kamil Rytarowski: > > W dniu 26.01.2016 o 16:23, Thomas Monjalon pisze: > > 2016-01-20 10:48, krytarowski@caviumnetworks.com: > >> --- a/tools/dpdk_nic_bind.py > >> +++ b/tools/dpdk_nic_bind.py > >> - for line in loaded_mods: > >> + try: > >> + # Get list of syfs modules, some of them might be builtin and merge with mods > > Please could you explain this comment? > > Is it remaining from previous versions of the patch? > > Yes. It might be changed to: > # Get list of sysfs modules (both built-in and dynamically loaded) OK > > [...] > >> + # special case for vfio_pci (module is named vfio-pci, > >> + # but its .ko is named vfio_pci) > > Isn't it common to have dash replaced by underscore for kernel modules? > > > > I retained the logic for special case of vfio-pci. At the moment > (according to my knowledge) there are no other DPDK modules with this > name replacement. > > I checked few example Linux modules and if a module is named with dash, > it's being replaced to underscore. The modprobe(8) tool can accept both > names as interchangeable (with dash and underscore). > > Would you like to make it a general rule and replace all dashes with > underscores? I don't know. Do what you think is best. Thanks