]> git.puffer.fish Git - matthieu/frr.git/commit
Zebra: Handle RMAC add/delete operation and add fpm_mac_info_t
authorAmeya Dharkar <adharkar@vmware.com>
Thu, 16 May 2019 21:43:41 +0000 (14:43 -0700)
committerAmeya Dharkar <adharkar@vmware.com>
Mon, 17 Jun 2019 19:05:38 +0000 (12:05 -0700)
commita780a738968ffc077a81d108b906cf9a06f3ef4d
tree53b347080dd458f382369bdf27a4c69ed5de992f
parente5218ec873949bea27a116a48372e04c6b70291f
Zebra: Handle RMAC add/delete operation and add fpm_mac_info_t

- Define a hook "zebra_mac_update" which can be registered by multiple
  data plane components (e.g. FPM, dplane).

DEFINE_HOOK(zebra_rmac_update, (zebra_mac_t *rmac, zebra_l3vni_t *zl3vni, bool
    delete, const char *reason), (rmac, zl3vni, delete, reason))

- While performing RMAC add/delete for an L3VNI, call "zebra_mac_update" hook.

- This hook call triggers "zfpm_trigger_rmac_update". In this function, we do a
  lookup for the RMAC in fpm_mac_info_table. If already present, this node is
  updated with the latest RMAC info. Else, a new fpm_mac_info_t node is created
  and inserted in the queue and hash data structures.

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
zebra/zebra_fpm.c
zebra/zebra_vxlan.c
zebra/zebra_vxlan_private.h