From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mms3.broadcom.com ([216.31.210.19]:4421 "EHLO mms3.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754080Ab2IWQQc (ORCPT ); Sun, 23 Sep 2012 12:16:32 -0400 Message-ID: <505F2F99.9090302@broadcom.com> Date: Sun, 23 Sep 2012 17:49:45 +0200 From: "Yuval Mintz" MIME-Version: 1.0 To: "Don Dutile" cc: "Yinghai Lu" , "Rose, Gregory V" , "Ben Hutchings" , "Bjorn Helgaas" , "davem@davemloft.net" , "netdev@vger.kernel.org" , "Ariel Elior" , "Eilon Greenstein" , linux-pci Subject: Re: New commands to configure IOV features References: <5003DC9B.8000706@broadcom.com> <1342814473.2678.65.camel@bwh-desktop.uk.solarflarecom.com> <5009ECDF.4090305@genband.com> <500D59BF.9040006@redhat.com> <500D6932.8090306@genband.com> <20120723113607.56ce7aaf@nehalam.linuxnetplumber.net> <5059A767.2090307@broadcom.com> <20120919085306.00006af9@unknown> <1348083847.2636.37.camel@bwh-desktop.uk.solarflarecom.com> <1348094773.2636.85.camel@bwh-desktop.uk.solarflarecom.com> <1348104190.4836.61.camel@deadeye.wl.decadent.org.uk> <505CAC93.8020304@redhat.com> <505CC930.5070807@redhat.com> In-Reply-To: <505CC930.5070807@redhat.com> Content-Type: text/plain; charset=iso-8859-1 Sender: linux-pci-owner@vger.kernel.org List-ID: >>> It provides 3 sysfs files (enable, disable, num_max_vfs); >>> callbacks for enable& disable. >> >> why using three? only pass max_vfs should be enough... >> >> aka pass 0 mean disabling, pass other value mean enabling. >> > could do that. but I wouldn't use 'max_vfs'; I would recommend > 'num_vfs', as max implies, er, um, the maximum, and what one > wants is to be able to enable a number from 1->max_vfs. > 'max_vfs' will be provided by another file. > If we're at it, how do you suggest the configurations of the VFs resources/properties should be made? Notice I'm asking about properties which relate to all PCI devices, E.g., number of interrupts assigned to each VF (for VF RSS). (For properties which relate only to networking devices, we could use standard network API such as netlink). Perhaps given a configurable property that applies to all PCI devices, once SRIOV is enabled and the VFs are created, there would be an additional sysfs node under the VFs through which the user could configure that property.