[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48FE9876.9040003@intel.com>
Date: Wed, 22 Oct 2008 11:05:26 +0800
From: "Zhao, Yu" <yu.zhao@...el.com>
To: Greg KH <greg@...ah.com>
CC: "linux-pci@...r.kernel.org" <linux-pci@...r.kernel.org>,
"jbarnes@...tuousgeek.org" <jbarnes@...tuousgeek.org>,
"randy.dunlap@...cle.com" <randy.dunlap@...cle.com>,
"grundler@...isc-linux.org" <grundler@...isc-linux.org>,
"achiang@...com" <achiang@...com>,
"matthew@....cx" <matthew@....cx>,
"rdreier@...co.com" <rdreier@...co.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"virtualization@...ts.linux-foundation.org"
<virtualization@...ts.linux-foundation.org>
Subject: Re: [PATCH 12/15 v5] PCI: support the SR-IOV capability
Greg KH wrote:
> On Tue, Oct 21, 2008 at 07:53:08PM +0800, Yu Zhao wrote:
>> Support Single Root I/O Virtualization (SR-IOV) capability.
>>
>> Cc: Jesse Barnes <jbarnes@...tuousgeek.org>
>> Cc: Randy Dunlap <randy.dunlap@...cle.com>
>> Cc: Grant Grundler <grundler@...isc-linux.org>
>> Cc: Alex Chiang <achiang@...com>
>> Cc: Matthew Wilcox <matthew@....cx>
>> Cc: Roland Dreier <rdreier@...co.com>
>> Cc: Greg KH <greg@...ah.com>
>> Signed-off-by: Yu Zhao <yu.zhao@...el.com>
>>
>> +#define iov_config_attr(field) \
>> +static ssize_t field##_show(struct device *dev, \
>> + struct device_attribute *attr, char *buf) \
>> +{ \
>> + struct pci_dev *pdev = to_pci_dev(dev); \
>> + return sprintf(buf, "%d\n", pdev->iov->field); \
>> +}
>> +
>> +iov_config_attr(status);
>> +iov_config_attr(totalvfs);
>> +iov_config_attr(initialvfs);
>> +iov_config_attr(numvfs);
>
> As you are adding new sysfs entries, can you also create the proper
> documentation in Documentation/ABI/ so that people can understand how to
> use them? Yes, I see you added a stand-alone document, but putting it
> in the "standard" format is also necessary.
Thanks for reminding me about this. I used to update ABI doc in earlier
versions, but somehow forgot to do this after several carry-forwards...
Will complete it in next version.
Regards,
Yu
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists