mlx4: Fix vlan table overflow
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>
Tue, 18 Oct 2011 01:50:29 +0000 (01:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Oct 2011 07:42:26 +0000 (03:42 -0400)
commite72ebf5a578464204c8418d7d9b375333bb33161
tree9a31012872207aef3d0dae1bd2e17dfb169f1e27
parent5ea2ef5f8b006ff9e970327e7fea78f1f5841c44
mlx4: Fix vlan table overflow

Prevent overflow when trying to register more Vlans then the Vlan table in
HW is configured to.
Need to take into acount that the first 2 entries are reserved.

Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/port.c