mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
enic: add V2 SR-IOV VF device ID
Register the V2 VF PCI device ID (0x02b7) so the driver binds to V2 virtual functions created via sriov_configure. Update enic_is_sriov_vf() to recognize V2 VFs alongside the existing V1 type. Signed-off-by: Satish Kharat <satishkh@cisco.com> Link: https://patch.msgid.link/20260401-enic-sriov-v2-prep-v4-2-d5834b2ef1b9@cisco.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
74fb32ed73
commit
803a1b0202
|
|
@ -66,12 +66,14 @@
|
|||
#define PCI_DEVICE_ID_CISCO_VIC_ENET 0x0043 /* ethernet vnic */
|
||||
#define PCI_DEVICE_ID_CISCO_VIC_ENET_DYN 0x0044 /* enet dynamic vnic */
|
||||
#define PCI_DEVICE_ID_CISCO_VIC_ENET_VF 0x0071 /* enet SRIOV VF */
|
||||
#define PCI_DEVICE_ID_CISCO_VIC_ENET_VF_V2 0x02b7 /* enet SRIOV V2 VF */
|
||||
|
||||
/* Supported devices */
|
||||
static const struct pci_device_id enic_id_table[] = {
|
||||
{ PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET) },
|
||||
{ PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_DYN) },
|
||||
{ PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF) },
|
||||
{ PCI_VDEVICE(CISCO, PCI_DEVICE_ID_CISCO_VIC_ENET_VF_V2) },
|
||||
{ 0, } /* end of table */
|
||||
};
|
||||
|
||||
|
|
@ -307,7 +309,8 @@ int enic_sriov_enabled(struct enic *enic)
|
|||
|
||||
static int enic_is_sriov_vf(struct enic *enic)
|
||||
{
|
||||
return enic->pdev->device == PCI_DEVICE_ID_CISCO_VIC_ENET_VF;
|
||||
return enic->pdev->device == PCI_DEVICE_ID_CISCO_VIC_ENET_VF ||
|
||||
enic->pdev->device == PCI_DEVICE_ID_CISCO_VIC_ENET_VF_V2;
|
||||
}
|
||||
|
||||
int enic_is_valid_vf(struct enic *enic, int vf)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user