]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8784351d5d38a469a0338962c1af261d13c1eba2
tree95a7e9edb28ca0d7b975163df9f8d81e3bc1d9c2
parent3cb43b5e87005caae6cac9a3bf5f62f18c345a42
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