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)
commit0beb44b0653978c0f180f902fb93a1b0b61833b8
treead5ae38e38cd49b12d8a85a3d579c027d911a3ad
parentd912557b346099584bbbfa8d3c1e101c46e33b59
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