]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_iface.c
pimd: Pim Nexthop Tracking support with ECMP
authorChirag Shah <chirag@cumulusnetworks.com>
Wed, 5 Apr 2017 20:14:12 +0000 (13:14 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Thu, 6 Apr 2017 18:18:07 +0000 (11:18 -0700)
commitcba444817883b8b3b22a7ed9958dc9ed77f76230
tree9167aeb0623fe581a831324b8ba90de14432397d
parentbc7268d524eaac8d4a29ed843f01ac1bc5e8d4f2
pimd: Pim Nexthop Tracking support with ECMP

In this patch, PIM nexthop tracking uses locally populated nexthop cached list
to determine ECMP based nexthop (w/ ECMP knob enabled), otherwise picks
the first nexthop as RPF.
Introduced '[no] ip pim ecmp' command to enable/disable PIM ECMP knob.
By default, PIM ECMP is disabled.
Intorudced '[no] ip pim ecmp rebalance' command to provide existing mcache
entry to switch new path based on hash chosen path.
Introduced, show command to display pim registered addresses and respective nexthops.
Introuduce, show command to find nexthop and out interface for (S,G) or (RP,G).
Re-Register an address with nexthop when Interface UP event received,
to ensure the PIM nexthop cache is updated (being PIM enabled).
During PIM neighbor UP, traverse all RPs and Upstreams nexthop and determine, if
any of nexthop's IPv4 address changes/resolves due to neigbor UP event.

Testing Done: Run various LHR, RP and FHR related cases to resolve RPF using
nexthop cache with ECMP knob disabled, performed interface/PIM neighbor flap events.
Executed pim-smoke with knob disabled.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
15 files changed:
pimd/pim_cmd.c
pimd/pim_iface.c
pimd/pim_mroute.c
pimd/pim_neighbor.c
pimd/pim_nht.c
pimd/pim_nht.h
pimd/pim_oil.c
pimd/pim_register.c
pimd/pim_rp.c
pimd/pim_rp.h
pimd/pim_rpf.c
pimd/pim_upstream.c
pimd/pim_zebra.c
pimd/pimd.c
pimd/pimd.h