]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_rpf.c
pimd: provide a mechanism to pin the IIF for an SG entry
authorAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Tue, 26 Mar 2019 20:36:43 +0000 (13:36 -0700)
committerAnuradha Karuppiah <anuradhak@cumulusnetworks.com>
Sat, 20 Apr 2019 15:33:21 +0000 (08:33 -0700)
commit6a5de0ad483b568221ef0eca5d9205ff5d2d08c0
tree33e77c41877c66dd5095aa6672dc3a3436c27751
parentff459c36af62f2f562450da6d5ea51fe04ab8762
 pimd: provide a mechanism to pin the IIF for an SG entry

In the case of vxlan origination entries IIF is set to -
1. lo for single VTEPs
2. MLAG-ISL for VTEPs multihomed via MLAG.

This commit creates the necessary infrastructure by -
1. allowing the IIF to be set statically (without RPF lookup)
2. and by preventing next-hop-tracking registration

PS: Note that I have skipped additional checks in pim_upstream_del
intentionally i.e. an attempt will be made to remove nexthop-tracking
for the upstream entry (with STATIC_IIF) which will fail because of the
up-entry not being in the nh's hash table. Ideally we should maintain
a nh pointer in the up-entry to prevent this unnecessary processing.
In the abscence of that I wanted to avoid spraying STATIC_IIF checks
all over.

Signed-off-by: Anuradha Karuppiah <anuradhak@cumulusnetworks.com>
pimd/pim_rpf.c
pimd/pim_upstream.c
pimd/pim_upstream.h