Skip to content

Retrieve number of VFs in a bus-agnostic way

Phil Sutter linux-pci netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3device: bus_type: Introduce num_vf callbackinclude/linux/device.h+4 -00 replies
2/3PCI: implement num_vf bus type callbackdrivers/pci/pci-driver.c+6 -00 replies
3/3device: Implement a bus agnostic dev_num_vf routineinclude/linux/device.h include/linux/pci.h net/core/rtnetlink.c+8 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [net-next PATCH 0/3] Retrieve number of VFs in a bus-agnostic way

Previously, it was assumed that only PCI NICs would be capable of having virtual functions - with my proposed enhancement of dummy NIC driver implementing (fake) ones for testing purposes, this is no longer true.

Discussion of said patch has led to the suggestion of implementing a bus-agnostic method for VF count retrieval so rtnetlink could work with both real VF-capable PCI NICs as well as my dummy modifications without introducing ugly hacks.

The following series tries to achieve just that by introducing a bus type callback to retrieve a device's number of VFs, implementing this callback for PCI bus and finally adjusting rtnetlink to make use of the generalized infrastructure.

Phil Sutter (3):
device: bus_type: Introduce num_vf callback
PCI: implement num_vf bus type callback
device: Implement a bus agnostic dev_num_vf routine

 drivers/pci/pci-driver.c |  6 ++++++
 include/linux/device.h   | 11 +++++++++++
 include/linux/pci.h      |  2 --
 net/core/rtnetlink.c     |  3 +--
 4 files changed, 18 insertions(+), 4 deletions(-)
Signature · 1 line
2.11.0