Commit eedd47a
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: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20230719-nh_select-v2-1-04383e89f868@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>1 parent 022add1 commit eedd47a
1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1152 | 1152 | | |
1153 | 1153 | | |
1154 | 1154 | | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
1155 | 1172 | | |
1156 | 1173 | | |
1157 | 1174 | | |
1158 | 1175 | | |
1159 | 1176 | | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1160 | 1180 | | |
1161 | 1181 | | |
1162 | 1182 | | |
| |||
1165 | 1185 | | |
1166 | 1186 | | |
1167 | 1187 | | |
1168 | | - | |
1169 | | - | |
1170 | 1188 | | |
1171 | 1189 | | |
1172 | 1190 | | |
| |||
0 commit comments