diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2024-02-22 16:20:37 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2024-08-21 10:15:55 -0400 |
| commit | db87ab3d861a2da9720317762b6990b2295e7afd (patch) | |
| tree | 9900389b462b12c2cc8e164435313ec730899f2a /zebra/zebra_router.c | |
| parent | d9775c690cb6f3d5fcc91805c3ada83aaa8f4835 (diff) | |
zebra: Ensure we cannot send invalid range to kernel
The linux kernel adds 1 upon receipt of a weight, if you
send a 255 it gets unhappy. Let's Limit range to 254 as
that kernel does not like sending of 255.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'zebra/zebra_router.c')
| -rw-r--r-- | zebra/zebra_router.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_router.c b/zebra/zebra_router.c index 8d6b2f3476..4022c1a26f 100644 --- a/zebra/zebra_router.c +++ b/zebra/zebra_router.c @@ -343,7 +343,7 @@ void zebra_router_init(bool asic_offload, bool notify_on_ack, #endif zrouter.asic_notification_nexthop_control = false; - zrouter.nexthop_weight_scale_value = 255; + zrouter.nexthop_weight_scale_value = 254; #ifdef HAVE_SCRIPTING zebra_script_init(); |
