mlxsw: spectrum_router: Move IPv4 FIB info into a union in nexthop group struct
authorIdo Schimmel <idosch@nvidia.com>
Fri, 13 Nov 2020 16:05:51 +0000 (18:05 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sun, 15 Nov 2020 00:55:03 +0000 (16:55 -0800)
commit5a49dfe51f2291c19e97ad7fd23cc00c4c1aca26
tree95a7e9edb28ca0d7b975163df9f8d81e3bc1d9c2
parent46d5b7b54195c34f9b045b8eb9121a61a35d5277
mlxsw: spectrum_router: Move IPv4 FIB info into a union in nexthop group struct

Instead of storing the FIB info as 'priv' when the nexthop group
represents an IPv4 nexthop group, simply store it as a FIB info with a
proper comment.

When nexthop objects are supported, this field will become a union with
the nexthop object's identifier.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c