Page MenuHomeFreeBSD

Switch net.add_addr_allfibs default to 0
ClosedPublic

Authored by melifaro on Aug 15 2020, 11:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 22, 2:15 PM
Unknown Object (File)
Fri, Mar 22, 2:13 PM
Unknown Object (File)
Fri, Mar 22, 2:05 PM
Unknown Object (File)
Fri, Mar 22, 11:43 AM
Unknown Object (File)
Thu, Mar 7, 9:43 PM
Unknown Object (File)
Feb 5 2024, 9:42 PM
Unknown Object (File)
Jan 10 2024, 10:36 PM
Unknown Object (File)
Jan 9 2024, 2:50 PM
Subscribers

Details

Summary

Background

Multi-fib support was added in rS178888 12 years ago.
Addition of interface addresses to all fibs was a feature from day 1.
The net.add_addr_allfibs sysctl was added in rS180840, 12 years ago.

Problem

The goal of the fib support is to provide multiple independent routing tables, isolated from each other.
net.add_addr_allfibs default tries to shift gears in the opposite direction, unconditionally inserting all addresses to all of the fibs.

It complicates the logic, kernel code and makes control plane performance decrease with the number of fibs.
It make impossible to use the same prefixes in multiple fibs, which may be desired given shortage of IPv4 address space.

Proposal to switch the behaviour and remove the sysctl was announced more than a month ago. No objections has been received so far.

Next steps

  • Evaluate the possibility of addressing "nexthop in a different fib" usecase by using "proxy" nexthops
  • Once done, remove the sysctl

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

melifaro retitled this revision from Disable net.add_addr_allfibs by default. Background: Multi-fib support was added in r178888 [1], 12 years ago. Addition of interface addresses to all fibs was a feature from day 1. The `net.add_addr_allfibs` sysctl  was added in r180840 [2], 12... to Switch net.add_addr_allfibs default to 0.Aug 15 2020, 11:21 AM
melifaro edited the summary of this revision. (Show Details)
melifaro added reviewers: network, bz.
melifaro added a reviewer: julian.

I intend to commit it on Friday, Aug 21 if no objections arise.

What the current status of this review ? Wasn't it supposed to be committed at the end of August ?

This revision was not accepted when it landed; it landed in state Needs Review.Nov 8 2020, 6:28 PM
This revision was automatically updated to reflect the committed changes.