net/mlx4_core: Check the correct limitation on VFs for HA mode
authorMoni Shoua <monis@mellanox.com>
Wed, 2 Mar 2016 15:47:45 +0000 (17:47 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Mar 2016 19:42:45 +0000 (14:42 -0500)
commit00ada91039fc03100cb4fab41d04f9b30f27340f
treec839ab1f4ba4e83b8ea450e34e638875a420a57e
parent03a79f31ef5fb7a2298258432f3dc0f558f24d48
net/mlx4_core: Check the correct limitation on VFs for HA mode

The limit of 63 is only for virtual functions while the actual enforcement
was for VFs plus physical functions, fix that.

Fixes: e57968a10bc1 ('net/mlx4_core: Support the HA mode for SRIOV VFs too')
Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c