]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mlxsw: reg: Fix SPVM max record count
authorJiri Pirko <jiri@mellanox.com>
Tue, 14 Mar 2017 13:00:00 +0000 (14:00 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 18:35:11 +0000 (11:35 -0700)
commitf004ec065b4879d6bc9ba0211af2169b3ce3097f
tree9ee8174b847de3438e93315553c5f04b20f104e2
parent37c343b4f4e70e9dc328ab04903c0ec8d154c1a4
mlxsw: reg: Fix SPVM max record count

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

Fixes: b2e345f9a454 ("mlxsw: reg: Add Switch Port VID and Switch Port VLAN Membership registers definitions")
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