]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
enic: detect SR-IOV VF type from PCI capability
authorSatish Kharat <satishkh@cisco.com>
Wed, 1 Apr 2026 15:31:13 +0000 (08:31 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 01:05:06 +0000 (18:05 -0700)
commit56a4d7a865860ac0e52e26a4c8d13de78e7a9707
tree6df941bae223a80fa6ef0419607a1dd54cd2ac5d
parent803a1b02027918450b58803190aa7cacb8056265
enic: detect SR-IOV VF type from PCI capability

Read the VF device ID from the SR-IOV PCI capability at probe time to
determine whether the PF is configured for V1, USNIC, or V2 virtual
functions. Store the result in enic->vf_type for use by subsequent
SR-IOV operations.

The VF type is a firmware-configured property (set via UCSM, CIMC,
Intersight etc) that is immutable from the driver's perspective. Only
PFs are probed for this capability; VFs and dynamic vnics skip
detection.

Signed-off-by: Satish Kharat <satishkh@cisco.com>
Link: https://patch.msgid.link/20260401-enic-sriov-v2-prep-v4-3-d5834b2ef1b9@cisco.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cisco/enic/enic.h
drivers/net/ethernet/cisco/enic/enic_main.c