summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/adaptec
diff options
context:
space:
mode:
authorHariprasad Shenai2016-08-11 17:36:23 +0200
committerDavid S. Miller2016-08-15 06:16:57 +0200
commit7829451c695e5b795fef95d72cd258e78d52f62d (patch)
tree39db6b99aa0b38834767e2d0687d1c1cb90298c8 /drivers/net/ethernet/adaptec
parentMerge branch 'proc-per-ns' (diff)
downloadkernel-qcow2-linux-7829451c695e5b795fef95d72cd258e78d52f62d.tar.gz
kernel-qcow2-linux-7829451c695e5b795fef95d72cd258e78d52f62d.tar.xz
kernel-qcow2-linux-7829451c695e5b795fef95d72cd258e78d52f62d.zip
cxgb4: Add control net_device for configuring PCIe VF
Issue: For instance, the current APIs assume a 1-to-1 mapping of Network Ports, Physical Functions and the SR-IOV Virtual Functions of those Physical Functions. This is not the case with our cards where any Virtual Function can be hooked up to any Port -- or any number of Ports the current Linux APIs also assume only 1 Network Interface/Port can be accessed per Virtual Function. Another issue is that these APIs assume that the Administrative Driver is attached to the Physical Function Associated with a Virtual Function. This is not the case with our card where all administration is performed by a Driver which is not attached to any of the Physical Functions which have SR-IOV PCI Capabilities. Another consequence of these assumptions is the inability to utilize all of the cards SR-IOV resources. For instance, our cards have SR-IOV Capabilities on Physical Functions 0..3 and the administrative Driver attaches to Physical Function 4. Each of the Physical Functions 0..3 can support up to 16 Virtual Functions. With the current Linux APIs, a 2-Port card would only be able to use the Virtual Functions on Physical Function 0..1 and not allow the Virtual Functions on Physical Functions 2..3 to be used since there are no Ports 2..3 on a 2-Port card. Fix: Since the control node is always the netdevice for all VF ACL commands. Created a dummy netdevice for each Physical Function from 0 to 3 through which one could control their VFs. The device won't be associated with any port, since it doesn't need to transmit/receive. Its purely used for VF management purpose only. The device will be registered only when VF for a particular PF is configured using PCI sysfs interface and unregistered while pci_disable_sriov() for the PF is called. Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/adaptec')
0 files changed, 0 insertions, 0 deletions