]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6d279f982b8d89726dcebb4a3e99e477d59fad2
treec839ab1f4ba4e83b8ea450e34e638875a420a57e
parentb1c0af24f70394ef0e1c9a4645f60df139d2c985
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: e34e63de4f3f ('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