Method and system of configuring virtual function in peripheral devices
View Patent ↗Methods and systems for a device are provided. The device includes physical function (PF) representing a physical component and is assigned to an XF group. The XF group includes a plurality of virtual functions (VFs) associated with the PF, each VF identified by a unique number. A number of XF group that are assigned to the PF is configurable depending on the function of the physical component.
1. A device, comprising:
a physical function (PF) representing a physical hardware component of the device is assigned to at least a group that includes a minimum number of virtual functions (VFs) that are associated with the PF and are used to access the PF, where each VF is identified by a unique identification number; wherein a number of groups that are assigned to the PF is configurable depending on the function of the physical component; wherein the group is part of an array that is indexed by a group number and a relative number and the group number is determined by a transformation operation using a PF number and a VF number.
2. The device of claim 1 , wherein the device is a PCI-Express device that is operationally coupled with a computing device.
3. The device of claim 2 , wherein the PCI-Express device is a host bus adapter used for input/output operations.
4. The device of claim 1 , wherein each group is assigned to a vector group having a certain number of vectors that are used by the PF to generate an interrupt.
5. The device of claim 4 , wherein the vector group has a fixed number of vectors.
6. The device of claim 1 , wherein each group has a fixed number of VFs.
7. The device of claim 1 , wherein each group has a variable number of VFs.
8. A PCI-Express device coupled to a computing device, comprising:
a physical function (PF) representing a physical hardware component of the device is assigned to at least a group that includes a minimum number of virtual functions (VFs) that are associated with the PF and are used to access the PF, where each VF is identified by a unique identification number; wherein a number of groups that are assigned to the PF is configurable depending on the function of the physical component;
wherein the group is assigned to a vector group having a certain number of vectors that are used by the PF to generate an interrupt; and
wherein the group is part of an array that is indexed by a group number and a relative number; and the group number is determined by a transformation operation using a PF number and a VF number.
9. The device of claim 8 , wherein the group has a fixed number of VFs.
10. The device of claim 8 , wherein the device is a host bus adapter used for input/output operations.