[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1348083847.2636.37.camel@bwh-desktop.uk.solarflarecom.com>
Date: Wed, 19 Sep 2012 20:44:07 +0100
From: Ben Hutchings <bhutchings@...arflare.com>
To: Greg Rose <gregory.v.rose@...el.com>
CC: Yuval Mintz <yuvalmin@...adcom.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Ariel Elior <ariele@...adcom.com>,
Eilon Greenstein <eilong@...adcom.com>,
linux-pci <linux-pci@...r.kernel.org>
Subject: Re: New commands to configure IOV features
On Wed, 2012-09-19 at 08:53 -0700, Greg Rose wrote:
> On Wed, 19 Sep 2012 14:07:19 +0300
> Yuval Mintz <yuvalmin@...adcom.com> wrote:
[...]
> > We've encountered a problem though - all drivers currently supporting
> > SRIOV do so with the usage of a module param: e.g., 'max_vfs' for
> > ixgbe, 'num_vfs' for benet, etc.
> > The SRIOV feature is disabled by default on all the drivers; it can
> > only be enabled via usage of the module param.
> >
> > We don't want the lack of SRIOV module param in the bnx2x driver to be
> > the bottle-neck when we'll submit the SRIOV feature upstream, and we
> > also don't want to enable SRIOV by default (following the same logic
> > of other drivers; most users don't use SRIOV and it would strain their
> > resources).
> >
> > As we see it, there are several possible ways of solving the issue:
> > 1. Use some network-tool (e.g., ethtool).
> > 2. Implement a standard sysfs interface for PCIe devices, as SRIOV is
> > not solely network-related (this should be done via the PCI linux
> > tree).
There is another interim option, which is to put this setting somewhere
in NVRAM on the device. This solves the one-size-for-all-devices
problem, though obviously not the inconsistent-interface problem.
> I was not able to attend the Linux conference held at the end of August
> myself but coworkers of mine here at Intel informed that method 2 here
> seems to be the preferred approach. Perhaps some folks who attended
> the the conference can chime in with more specifics.
There really wasn't much more specific discussion. Bjorn's summary of
the mini-summit <http://lwn.net/Articles/514113/> says:
> SR-IOV Management
>
> Currently drivers implement module parameters like "max_vfs". This means
> all devices claimed by the driver get the same number of VFs, and you can't
> change anything without unloading and reloading the driver.
>
> Consensus that we should try to implement a knob for this in sysfs so it
> can be generic (not in each driver) and set individually for each device.
I don't think any implementation has been posted to the linux-pci list
yet...?
Ben.
--
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists