]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Consolidate nexthop helpers
authorIdo Schimmel <idosch@nvidia.com>
Mon, 22 Mar 2021 15:58:43 +0000 (17:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Mar 2021 20:45:46 +0000 (13:45 -0700)
commit8c2b774f11963155fd3a988b018ae643dac72ed6
tree8a15c2b26b85a9dc0d2db7265384d7faf3f0d720
parent0181b03e2f3312ce19c303aa8cddabbe08edfb0d
mlxsw: spectrum_router: Consolidate nexthop helpers

The helper mlxsw_sp_nexthop_offload() is actually interested in finding
out if the nexthop is both written to the adjacency table and forwarding
packets (as opposed to discarding them).

Rename it to mlxsw_sp_nexthop_is_forward() and remove
mlxsw_sp_nexthop_is_discard().

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_dpipe.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.h