]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Use loopback RIF for unresolved nexthops
authorIdo Schimmel <idosch@nvidia.com>
Mon, 23 Nov 2020 07:12:23 +0000 (09:12 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 24 Nov 2020 20:14:55 +0000 (12:14 -0800)
commitb9da2b95fd18c847f293020172c6f3d0859e7f59
treec1e83094ffafeb994accfc01b2a6acb286a9cc47
parent1570cd9509f49fbd9d21393ebbbb2e61d5f53c47
mlxsw: spectrum_router: Use loopback RIF for unresolved nexthops

Now that the driver creates a loopback RIF during its initialization, it
can be used to program the adjacency entries for unresolved nexthops
instead of other RIFs. The loopback RIF is guaranteed to exist for the
entire life time of the driver, unlike other RIFs that come and go.

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