mlxsw: spectrum_router: Update prefix count for IPv6
authorIdo Schimmel <idosch@mellanox.com>
Tue, 18 Jul 2017 08:10:30 +0000 (10:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Jul 2017 18:57:34 +0000 (11:57 -0700)
commit7dcc18adad31d15d528414bdff12bf98d33d9a20
tree1d30c7e8600f58acd6ec97bdeadb1c685930bb84
parent80c238f91b1f607b32fae54f0462a073c3674140
mlxsw: spectrum_router: Update prefix count for IPv6

The number of possible prefix lengths for IPv6 is 129 and not 128.

Fixes following warning from UBSAN when /128 routes are offloaded:

 UBSAN: Undefined behaviour in
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c:2510:27 index 128 is out
of range for type 'long unsigned int [128]'

Fixes: 5e9c16cc83a7 ("mlxsw: spectrum_router: Implement private fib")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c