| 262 | }; |
| 263 | |
| 264 | static inline struct nhop_object * |
| 265 | nhop_select(struct nhop_object *nh, uint32_t flowid) |
| 266 | { |
| 267 | |
| 268 | #ifdef ROUTE_MPATH |
| 269 | if (NH_IS_NHGRP(nh)) { |
| 270 | struct nhgrp_object *nhg = (struct nhgrp_object *)nh; |
| 271 | nh = nhg->nhops[flowid % nhg->nhg_size]; |
| 272 | } |
| 273 | #endif |
| 274 | return (nh); |
| 275 | } |
| 276 | |
| 277 | |
| 278 | struct weightened_nhop; |
no outgoing calls
no test coverage detected