]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Remove unnecessary condition check for kernel routes
authoranlan_cs <vic.lan@pica8.com>
Mon, 19 Jun 2023 01:10:57 +0000 (09:10 +0800)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 6 Jul 2023 06:02:04 +0000 (06:02 +0000)
commit04c14268240904203d37c969133b729858c4572e
treef7aab0b2b913fc404cd6eb1e6e9e2b024891ebc6
parent39ae49b02ad2c09fc9b0f8bb53aa46f8f07a810f
zebra: Remove unnecessary condition check for kernel routes

There are relaxed nexthop requirements for kernel routes because we
trust kernel routes.

Two minor changes for kernel routes:

1. `if_is_up()` is one of the necessary conditions for `if_is_operative()`.
Here, we can remove this unnecessary check for clarity.

2. Since `nexthop_active()` doesn't distinguish whether it is kernel route,
modified the corresponding comment in it.

Signed-off-by: anlan_cs <vic.lan@pica8.com>
(cherry picked from commit caf896d6ef18d917a9b9cee9cb48719ea9757e37)
zebra/zebra_nhg.c