]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_evpn.c
zebra: multiple vlan aware bridge datastructure changes and vxlan device iftype deriv...
authorSharath Ramamurthy <sramamurthy@nvidia.com>
Tue, 27 Jul 2021 07:47:52 +0000 (13:17 +0530)
committerStephen Worley <sworley@nvidia.com>
Mon, 13 Feb 2023 23:12:04 +0000 (18:12 -0500)
commit784d88aa14c115411ed21f6ac518ab1a8f9d27b7
tree86c103be00f0442b205027ca2cc2f852275eac94
parent8d30ff3b5ef815ad5cab092f2ce6dc28ab5e3421
zebra: multiple vlan aware bridge datastructure changes and vxlan device iftype derivation from netlink

This change set introduces data structure changes required for multiple vlan aware bridge
functionality. A new structure zebra_l2_bridge_if encapsulates the vlan to access_bd
association of the bridge. A vlan_table hash_table is used to record each instance
of the vlan to access_bd of the bridge via zebra_l2_bridge_vlan structure.

vxlan iftype derivation: netlink attribute IFLA_VXLAN_COLLECT_METADATA is used
to derive the iftype of the vxlan device. If the attribute is present, then the
vxlan interface is treated as single vxlan device, otherwise it would default to
traditional vxlan device.

zebra_vxlan_check_readd_vtep, zebra_vxlan_dp_network_mac_add/del is modified to
be vni aware.

mac_fdb_read_for_bridge - is modified to be (vlan, bridge) aware

Signed-off-by: Sharath Ramamurthy <sramamurthy@nvidia.com>
13 files changed:
zebra/if_netlink.c
zebra/interface.c
zebra/rt.h
zebra/rt_netlink.c
zebra/rt_netlink.h
zebra/rtread_netlink.c
zebra/rtread_sysctl.c
zebra/zebra_evpn.c
zebra/zebra_evpn_mh.c
zebra/zebra_l2.h
zebra/zebra_vxlan.c
zebra/zebra_vxlan.h
zebra/zebra_vxlan_private.h