1 Jun 2010 07:05
Add a helper function in PCI IOV to get VF device
Frank Pan <frankpzh <at> gmail.com>
2010-06-01 05:05:25 GMT
2010-06-01 05:05:25 GMT
Greetings, The motivation is make VF device visible to PF driver. PF driver may need this to access VF's PCI configuration. Another use case is in sysfs symbolic linking. Some of VF's sysfs entries are created by PF driver. For example, /sys/class/net/ethx/vfx in Intel 82576 NIC driver. Makeing a symbolic link from VF's pci device to this path also must be done in PF's driver. Currently, there is no hint about VF's bus/devfn in PF's pci_dev. The offset and stride entries(which are used to calculate bus/devfn of VF devices) in VF's PCI configuration is also invisible in PF's driver. So IMO this helper function is needed. Any reply is appreciated, THX. (ps: gmail will do line wrap/tab replace, use attachment instead to patch) -- Frank Pan Computer Science and Technology Tsinghua University Signed-off-by: Frank Pan <frankpzh <at> gmail.com> --- diff --git a/drivers/pci/iov.c b/drivers/pci/iov.c index ce6a366..f15aa2a 100644 --- a/drivers/pci/iov.c +++ b/drivers/pci/iov.c(Continue reading)
RSS Feed