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)
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