]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: Abstract `dplane_ctx_route_init` to init route without copying
authorCarmine Scarpitta <carmine.scarpitta@uniroma2.it>
Fri, 7 Jul 2023 00:55:18 +0000 (02:55 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Fri, 7 Jul 2023 16:16:37 +0000 (16:16 +0000)
commit18a693cb8907cb4d6b482f20701cc9f4c39752d2
treeaa2844377d65d0fff3383d5d08f17b1374eef641
parent33686006dae069cac2d5c87af0162ef14c921622
zebra: Abstract `dplane_ctx_route_init` to init route without copying

The function `dplane_ctx_route_init` initializes a dplane route context
from the route object passed as an argument. Let's abstract this
function to allow initializing the dplane route context without actually
copying a route object.

This allows us to use this function for initializing a dplane route
context when we don't have any route to copy in it.

Signed-off-by: Carmine Scarpitta <carmine.scarpitta@uniroma2.it>
(cherry picked from commit 745a0fcbb21a6bd7330454437abe34aff0bf82c0)
zebra/zebra_dplane.c