]> git.baikalelectronics.ru Git - 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)
commit100fc27acf5ca6413686bf3fb8d5d05e7aac51f8
treeca35f65647606c5c99c2a1b75a7f8ca184e06a9c
parent2dd8295cd1e9295e6c21e0d37e952ed5d4ac01ff
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