]> git.proxmox.com Git - mirror_frr.git/commit - pimd/pim_upstream.c
pimd: fix channel_oil and upstream RPF in sync
authorChirag Shah <chirag@cumulusnetworks.com>
Thu, 27 Apr 2017 18:01:32 +0000 (11:01 -0700)
committerChirag Shah <chirag@cumulusnetworks.com>
Sun, 7 May 2017 00:38:18 +0000 (17:38 -0700)
commit815c33c92f10c112dba83f4ed46a6eaaa55edbb4
tree8ae71bb5959d41ca12a445e0b01477699e8fb221
parent8b3366bae41852f4833bf8261094c2ce2e0f6048
pimd: fix channel_oil and upstream RPF in sync

During PIM Neighbor change/UP event, pim_scan_oil api
scans all channel oil to see any rpf impacted. Instead of
passing current upstream's RPF it passes current RPF as 0 and
does query to rib for nexhtop (without ECMP/Rebalance). This creates
inconsist RPF between Upstream and Channel oil.
In Channel Oil keep backward pointer to upstream DB and fetch up's
RPF and passed to channel_oil scan.
Decrement channel_oil ref_count in upstream_del when decrementing
up ref_count and it is not the last.
Created ECMP based FIB lookup API.

Testing Done:
Performed following testing on tester setup:
5 x LHR, 4 x MSDP Spines, 6 Sources each sending to 1023 groups from one of the spines.
Total send rate 8Mpps.
Test that caused problems was to reboot every device at the same time.
After fix performed 5 iterations of reboot devices and show no sign of the problem.

Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
pimd/pim_igmpv3.c
pimd/pim_nht.c
pimd/pim_nht.h
pimd/pim_oil.c
pimd/pim_oil.h
pimd/pim_rp.c
pimd/pim_upstream.c
pimd/pim_zebra.c