]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: reduce number of switch statements with dplane opcodes
authorMark Stapp <mjs@labn.net>
Fri, 17 Nov 2023 13:40:58 +0000 (08:40 -0500)
committerMark Stapp <mjs@labn.net>
Fri, 17 Nov 2023 13:40:58 +0000 (08:40 -0500)
commitbb3faf1b95ad877a4ce95caf17cf3f01b031fc1d
tree3d9b1be5e33492bf23519e1072ac8e16e7490acd
parentf671c92857eaf554172339f93f6631afe77a6d28
zebra: reduce number of switch statements with dplane opcodes

Replace several switch blocks that contain every dplane opcode
with simpler sets of if()s. In these cases the code only
uses a couple of opcodes.

Signed-off-by: Mark Stapp <mjs@labn.net>
zebra/if_netlink.c
zebra/interface.c
zebra/rt_netlink.c
zebra/zebra_mpls.c
zebra/zebra_mpls_openbsd.c
zebra/zebra_nhg.c
zebra/zebra_rib.c