fib: respect mfib entry flags on create with paths 96/34096/3
authorPaul Atkins <patkins@graphiant.com>
Tue, 12 Oct 2021 13:32:11 +0000 (14:32 +0100)
committerNeale Ranns <neale@graphiant.com>
Thu, 21 Oct 2021 16:40:11 +0000 (16:40 +0000)
commit8e2b1b129815d3e631aa425ed37899c78ea24e65
tree4df9608750ec288c2b0723467ff68528e62e8e9b
parentbfa86084af0e4d0cc8ad8ccbeafe999b748a990e
fib: respect mfib entry flags on create with paths

When an mfib entry was created with both paths and entry_flags then
the entry flags were being ignored. If there are no paths then the
flags were passed into mfib_table_entry_update, but in the case where
the entry didn't exist and there were paths and flags, the entry was
created within mfib_table_entry_paths_update() which used a default
of MFIB_ENTRY_FLAG_NONE.

Pass the flags through into the mfib_table_entry_paths_update fn. All
existing callers other than the create case will now pass in
MFIB_ENTRY_FLAG_NONE.

Type: fix
Signed-off-by: Paul Atkins <patkins@graphiant.com>
Change-Id: I256375ba2fa863a62a88474ce1ea6bf2accdd456
18 files changed:
src/plugins/dhcp/dhcp6_proxy_node.c
src/plugins/geneve/geneve.c
src/plugins/gtpu/gtpu.c
src/plugins/igmp/igmp.c
src/plugins/igmp/igmp_proxy.c
src/plugins/unittest/bier_test.c
src/plugins/unittest/mfib_test.c
src/plugins/vrrp/vrrp.c
src/vnet/ip/ip_api.c
src/vnet/ip/lookup.c
src/vnet/mfib/.clang-format [new file with mode: 0644]
src/vnet/mfib/ip4_mfib.c
src/vnet/mfib/ip6_mfib.c
src/vnet/mfib/mfib_table.c
src/vnet/mfib/mfib_table.h
src/vnet/vxlan-gbp/vxlan_gbp.c
src/vnet/vxlan-gpe/vxlan_gpe.c
src/vnet/vxlan/vxlan.c