]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
device: Implement a bus agnostic dev_num_vf routine
authorPhil Sutter <phil@nwl.cc>
Wed, 18 Jan 2017 13:04:39 +0000 (14:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 16:43:17 +0000 (11:43 -0500)
commit9af15c38254d81c9991eba89335ca7c537d7f2c3
treeca35f65647606c5c99c2a1b75a7f8ca184e06a9c
parent02e0bea6c83c657617195135667e6a3f50d3bfb3
device: Implement a bus agnostic dev_num_vf routine

Now that pci_bus_type has num_vf callback set, dev_num_vf can be
implemented in a bus type independent way and the check for whether a
PCI device is being handled in rtnetlink can be dropped.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/device.h
include/linux/pci.h
net/core/rtnetlink.c