]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcf2a528411219461d25b7c855a6a2969f85163c5
tree9a31012872207aef3d0dae1bd2e17dfb169f1e27
parentb0a740607078a99ad40fc11f1eeaa1afc0813718
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