[lkml]   [2010]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRE: Add a helper function in PCI IOV to get VF device
>-----Original Message-----
>From: Greg KH []
>Sent: Tuesday, June 01, 2010 11:39 AM

>On Tue, Jun 01, 2010 at 01:05:25PM +0800, Frank Pan wrote:
>> Greetings,
>> The motivation is make VF device visible to PF driver. PF driver
>> may need this to access VF's PCI configuration.
>What is "VF" and "PF" here?
>> 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.
>No, the network core should create that symlink, not the driver, right?
>greg k-h

Furthermore, the links are already there in sysfs, created by the PCI subsystem.

/sys/class/net/ethX/device links to the PCI device entry for the PF device, which itself has symlinks to each of the VF devices.

This patch just isn't necessary.


 \ /
  Last update: 2010-06-01 20:59    [W:0.098 / U:3.044 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site