]> 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)
commitbaef37bb1619beb37e3c84b7021d182fecb80980
treec839ab1f4ba4e83b8ea450e34e638875a420a57e
parentc0b88a6998cf1f2d917259b10fd7a9adfc05b837
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: 0a9fade73238 ('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