]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Add extra check for total vfs for SRIOV
authorCarol Soto <clsoto@linux.vnet.ibm.com>
Mon, 6 Jul 2015 14:20:19 +0000 (09:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Jul 2015 22:19:54 +0000 (15:19 -0700)
commit74d7ba0d618680aa149b3facaa27b17e2dbbe530
treead5ae38e38cd49b12d8a85a3d579c027d911a3ad
parent60a102f786c4b9493285c9a73e680548b495b560
net/mlx4_core: Add extra check for total vfs for SRIOV

Add extra check for total vfs for SRIOV to check if that value is
bigger than total vfs in pci SRIOV capabalities. Fix a check and
print of the number of maximum vfs that hw can handle. Fix a check
and print of the number of maximum vfs per port that driver can handle.

Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c