mlxsw: reg: Fix SPVMLR max record count
authorJiri Pirko <jiri@mellanox.com>
Tue, 14 Mar 2017 13:00:01 +0000 (14:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 18:35:11 +0000 (11:35 -0700)
commite9093b1183bbac462d2caef3eac165778c0b1bf1
treea83c6221387e40da3b2b725a0ec34ef088abffde
parentf004ec065b4879d6bc9ba0211af2169b3ce3097f
mlxsw: reg: Fix SPVMLR max record count

The num_rec field is 8 bit, so the maximal count number is 255.
This fixes vlans learning not being enabled for wider ranges than 255.

Fixes: a4feea74cd7a ("mlxsw: reg: Add Switch Port VLAN MAC Learning register definition")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h