device: bus_type: Introduce num_vf callback
authorPhil Sutter <phil@nwl.cc>
Wed, 18 Jan 2017 13:04:37 +0000 (14:04 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 16:43:16 +0000 (11:43 -0500)
commit582a686f52d2e002da64093fe4b9aa5befcaf4e4
tree3af9cc4b76d7b522d2fb41e15de209c4b61d9410
parent6c59ebd356ff2ca64cdf1f61c5fe17f6fa8fc045
device: bus_type: Introduce num_vf callback

This allows for bus types to implement their own method of retrieving
the number of virtual functions a NIC on that type of bus supports.

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