]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: use new vni_info->access_vlan structs
authorStephen Worley <sworley@nvidia.com>
Wed, 31 Aug 2022 16:35:57 +0000 (12:35 -0400)
committerStephen Worley <sworley@nvidia.com>
Mon, 13 Feb 2023 23:12:05 +0000 (18:12 -0500)
Use new vni_info->access_vlan struct accessors
for network mac add code.

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

index f4090b6d20238fc1c9ff33a096cde3f926ddc2f7..ae80931c699bf47e1459a5a41de8fe304e2ddf23 100644 (file)
@@ -4370,7 +4370,8 @@ int zebra_vxlan_dp_network_mac_add(struct interface *ifp,
        }
 
        /* Get vxlan's vid for netlink message has no it. */
-       vid = ((struct zebra_if *)ifp->info)->l2info.vxl.access_vlan;
+       vid = ((struct zebra_if *)ifp->info)
+                     ->l2info.vxl.vni_info.vni.access_vlan;
 
        /* if remote mac delete the local entry */
        if (!nhg_id || !zebra_evpn_nhg_is_local_es(nhg_id, &es)