IP Flow Hash Config fixes 13/6313/5
authorNeale Ranns <nranns@cisco.com>
Fri, 21 Apr 2017 08:07:59 +0000 (01:07 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 26 Apr 2017 15:31:41 +0000 (15:31 +0000)
commit227038a444b98f922b4a4f44b85ae60f9ee86e1c
treed4268410e3f860bb01386f4242e023324885801d
parent9806eae1f5f3953f7ac2c5bd07061a94387d757e
IP Flow Hash Config fixes

- the flow hash config is (and was) cached on the load-balance object so the fib_table_t struct is not used a switch time. Therefore changes to the table's flow hash config need to be propagated to all load-balances and hance all FIB entries in the table.
- enable API for setting the IPv6 table flow hash config
- use only the hash config in the fib_table_t object and not on the ipX_fib_t
- add tests.

Change-Id: Ib804c11162c6d4972c764957562c372f663e05d4
Signed-off-by: Neale Ranns <nranns@cisco.com>
20 files changed:
src/vnet/fib/fib_entry.c
src/vnet/fib/fib_entry.h
src/vnet/fib/fib_table.c
src/vnet/fib/fib_table.h
src/vnet/fib/fib_test.c
src/vnet/fib/ip4_fib.c
src/vnet/fib/ip4_fib.h
src/vnet/fib/ip6_fib.c
src/vnet/fib/ip6_fib.h
src/vnet/fib/mpls_fib.c
src/vnet/fib/mpls_fib.h
src/vnet/ip/ip4_forward.c
src/vnet/ip/ip6.h
src/vnet/ip/ip6_forward.c
src/vnet/ip/ip_api.c
src/vnet/mpls/mpls_tunnel.c
src/vpp/api/api.c
test/test_ip4.py
test/test_ip6.py
test/vpp_papi_provider.py