]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bus-agnostic-num-vf'
authorDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 16:43:17 +0000 (11:43 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2017 16:43:17 +0000 (11:43 -0500)
commita946605c062aea4288a024672121bcbb208adad4
treeca35f65647606c5c99c2a1b75a7f8ca184e06a9c
parent2d6a6cbdba7d4d293003b7c17d67b281bd1fd499
parent3d36756869afbb0d367e0ff9ed9d9e025ff3222e
Merge branch 'bus-agnostic-num-vf'

Phil Sutter says:

====================
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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>