diff options
author | Benoît Ganne <bganne@cisco.com> | 2024-04-16 09:36:05 +0200 |
---|---|---|
committer | Neale Ranns <neale@graphiant.com> | 2024-07-12 03:09:22 +0000 |
commit | ff570d3d07ebe07a5107b44d50c54fc4a57359dc (patch) | |
tree | e09554d6adf9e79b5d9abc7b9357509db20d8641 /src/plugins/unittest/session_test.c | |
parent | caaa63322307b28bc8cf9796f642d9a068722ba5 (diff) |
fib: make mfib optional
In some cases we do not need multicast support. Making it optional helps
scaling to high number of VRFs, by reducing the control plane operations
and memory consumption.
Type: improvement
Change-Id: Ib34ed3fe2806e2f4624981da4e4a3c49c69f70be
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/plugins/unittest/session_test.c')
-rw-r--r-- | src/plugins/unittest/session_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/unittest/session_test.c b/src/plugins/unittest/session_test.c index 12d000bd46f..6d28b2d25ec 100644 --- a/src/plugins/unittest/session_test.c +++ b/src/plugins/unittest/session_test.c @@ -133,7 +133,8 @@ session_create_lookpback (u32 table_id, u32 * sw_if_index, if (table_id != 0) { - ip_table_create (FIB_PROTOCOL_IP4, table_id, 0, 0); + ip_table_create (FIB_PROTOCOL_IP4, table_id, 0 /* is_api */, + 1 /* create_mfib */, 0); ip_table_bind (FIB_PROTOCOL_IP4, *sw_if_index, table_id); } |