Fix SR multicast post mfib commit 00/5000/3
authorNeale Ranns <nranns@cisco.com>
Thu, 2 Feb 2017 10:18:18 +0000 (02:18 -0800)
committerDamjan Marion <dmarion.lists@gmail.com>
Thu, 2 Feb 2017 14:27:13 +0000 (14:27 +0000)
commita9374df5f351d25e968f5f90a827796203cbafdd
tree7876e45e388ebc739722777c1cadcf666dda6439
parented0e49c51841e84c72a5bb2c6d538ee779b734d4
Fix SR multicast post mfib commit
 1 - use the SR policy to construct the replicate DPO. Each bucket therein is a SR tunnel.
 2 - install a special mfib entry that links via this replicate
 3 - forwarding is now mfib-lookup -> replicate -> sr_rewrite (per-tunnel)
        no need for a separate sr_replicate node.
 4 - Stack the sr tunnel on the forwarding DPO of the first-hop FIB entry.
        no need for a second lookup post SR encap.
 5 - fix some path-list lock leaks in the MFIB entry.

Change-Id: I20de96ea4c4be4fae252625bde159d9c435c8315
Signed-off-by: Neale Ranns <nranns@cisco.com>
13 files changed:
src/scripts/vnet/sr/mcast [new file with mode: 0644]
src/vnet.am
src/vnet/dpo/replicate_dpo.c
src/vnet/mfib/mfib_entry.c
src/vnet/mfib/mfib_entry.h
src/vnet/mfib/mfib_table.c
src/vnet/mfib/mfib_table.h
src/vnet/mfib/mfib_test.c
src/vnet/mfib/mfib_types.h
src/vnet/sr/sr.c
src/vnet/sr/sr.h
src/vnet/sr/sr_api.c
src/vnet/sr/sr_replicate.c [deleted file]