Skip to content
Commit eedd47a6 authored by Benjamin Poirier's avatar Benjamin Poirier Committed by Jakub Kicinski
Browse files

nexthop: Factor out hash threshold fdb nexthop selection



The loop in nexthop_select_path_hthr() includes code to check for neighbor
validity. Since this does not apply to fdb nexthops, simplify the loop by
moving the fdb nexthop selection to its own function.

Signed-off-by: default avatarIdo Schimmel <idosch@nvidia.com>
Signed-off-by: default avatarBenjamin Poirier <bpoirier@nvidia.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20230719-nh_select-v2-1-04383e89f868@nvidia.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 022add1d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment