]> git.puffer.fish Git - matthieu/frr.git/commit
zebra: single vxlan device vni handling
authorSharath Ramamurthy <sramamurthy@nvidia.com>
Tue, 27 Jul 2021 08:48:05 +0000 (14:18 +0530)
committerStephen Worley <sworley@nvidia.com>
Mon, 13 Feb 2023 23:12:04 +0000 (18:12 -0500)
commit131a9a2eeddab0f528b4ad6d29f0f4081cf8d8fe
tree5965f885921d2902e69e222e3b96a7b4a1e8862c
parent96c25556a1c1660d2a4f852ff7ab14e698d4387c
zebra: single vxlan device vni handling

This change brings in following functionality
- netlink_bridge_vxlan_vlan_vni_map_update for single vxlan devices
  This function is responsible for reading the vlan-vni map information
  received from netlink and populating a new hash_table with the vlan-vni
  data. Once all the vlan-vni data is collected, zebra_vxlan_if_vni_table_add_update
  is called to update vni_table in vxlan interface and process each of the
  vlan-vni data.
- refactoring changes for zevpn_build_hash_table
- existing zevpn_build_hash_table was walking over all the vxlan interfaces
  and then processing the vni for each of them. In case of single vxlan device,
  we will have more than one vni entries. This function is abstracted so that
  it iterates over all the vni entries for single vxlan device. For traditional
  vxlan device the zebra_vxlan_if_vni_iterate would only process single vni
  associated with that device.

Signed-off-by: Sharath Ramamurthy <sramamurthy@nvidia.com>
zebra/if_netlink.c
zebra/rt_netlink.c
zebra/zebra_vxlan.c