]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: Make nexthop ctx use nhg_depend_dup_list
authorStephen Worley <sworley@cumulusnetworks.com>
Tue, 26 Mar 2019 23:32:15 +0000 (19:32 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 25 Oct 2019 15:13:38 +0000 (11:13 -0400)
Update the dataplane nexthop ctx to use the nhg_depend_dup_list()
function for copying over the dependencies into its context.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/zebra_dplane.c

index 0e806ff7f74ea4107a259660a8bb712e83c39b64..57faca8bb443039842740d344e304c4047b0c3cd 100644 (file)
@@ -1517,10 +1517,12 @@ static int dplane_ctx_nexthop_init(struct zebra_dplane_ctx *ctx,
        nexthop_group_copy(ctx->u.rinfo.zd_nhe.nhg, nhe->nhg);
 
        if (nhe->nhg_depends)
-               ctx->u.rinfo.zd_nhe.nhg_depends = list_dup(nhe->nhg_depends);
+               ctx->u.rinfo.zd_nhe.nhg_depends =
+                       nhg_depend_dup_list(nhe->nhg_depends);
 
 
-       /* Extract ns info - can't use pointers to 'core' structs */
+       /* Extract ns info - can't use pointers to 'core'
+          structs */
        zns = ((struct zebra_vrf *)vrf_info_lookup(nhe->vrf_id))->zns;
 
        // TODO: Might not need to mark this as an update, since