]> git.baikalelectronics.ru Git - kernel.git/commit
qed: Provide auxiliary for getting free VF SB
authorMintz, Yuval <Yuval.Mintz@cavium.com>
Thu, 1 Jun 2017 12:29:08 +0000 (15:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jun 2017 16:17:19 +0000 (12:17 -0400)
commitcf72d44ca0b20a33140796ed9b1feb643c758dc0
treeefb2753fdf3028ab8f55bdc20aa1e60880f9057c
parent9af32e0cb30c0280e256e2690f27546e9aa0e6b8
qed: Provide auxiliary for getting free VF SB

IOV code is very intrusive in its manipulation of the status block
database.
Add a new auxiliary function to allow the PF to find an available unused
status block to configure for a specific VF's MSI-x vector.

Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qed/qed_int.c
drivers/net/ethernet/qlogic/qed/qed_int.h
drivers/net/ethernet/qlogic/qed/qed_sriov.c