Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlink tile #4049

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from
Draft

Netlink tile #4049

wants to merge 6 commits into from

Conversation

ripatel-fd
Copy link
Contributor

@ripatel-fd ripatel-fd commented Jan 29, 2025

  • net 2.0: new route table
  • net 2.0: netlink route importer
  • net 2.0: neighbor table
  • net 2.0: interface table
  • net 2.0: netlink tile, netconf command
  • Remove defunct multihome_ip_addrs config param

Relates to #692
Closes #3619

src/app/fdctl/run/run1.c Outdated Show resolved Hide resolved
@ripatel-fd ripatel-fd disabled auto-merge January 29, 2025 23:07
# the additional addresses can be specified here, and packets
# addressed to them will be accepted.
multihome_ip_addrs = []
# The netlink tile forwards Linux network configuration to net tiles.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These docs are operator facing so please expand a little bit, and explain things in language for operators not developers. At least a paragraph describing the tile, e.g. see net above.

multihome_ip_addrs = []
# The netlink tile forwards Linux network configuration to net tiles.
[tiles.netlink]
# The maximum number of routes per route table.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per above, lengthen docs, e.g. describe why you might need to increase this, what's a route table, ..

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd probably note that these are advanced configuration and don't need to be changed except for unique / custom networking configurations?

# See `ip route show table all`
max_routes = 128

# The maximum number of Ethernet neighbors (aka ARP table entries).
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would simplify this summary a little bit, for operators that might not know what ARP is, but have decent networking knowledge, with a bit more detail below.

@ripatel-fd ripatel-fd marked this pull request as draft January 30, 2025 17:18
@ripatel-fd ripatel-fd force-pushed the ripatel/netlink-tile branch 2 times, most recently from c7e6369 to 73f65cd Compare January 30, 2025 18:42
@ripatel-fd
Copy link
Contributor Author

@mmcgee-jump Thanks for the review. I addressed all the code concerns. I'll need some help with documentation for the config. I suggest we update the default config file later?

@ripatel-fd ripatel-fd marked this pull request as ready for review January 30, 2025 18:45
src/waltz/ip/fd_fib4.h Show resolved Hide resolved
If fib is not in ACTIVE state, retval->rtype is set to
FD_FIB4_RTYPE_BLACKHOLE.

Thread safe; Gracefully handles concurrent route updates by other
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just double checking it's indeed supposed to say updates, rather than lookups?

src/waltz/ip/fd_fib4.c Show resolved Hide resolved
src/waltz/ip/fd_fib4_netlink.c Outdated Show resolved Hide resolved
src/waltz/ip/fd_fib4_netlink.h Outdated Show resolved Hide resolved
src/waltz/ip/fd_fib4_netlink.c Outdated Show resolved Hide resolved
src/waltz/mib/fd_netdev_netlink.c Outdated Show resolved Hide resolved
src/waltz/neigh/fd_neigh4_netlink.h Outdated Show resolved Hide resolved
@ripatel-fd ripatel-fd marked this pull request as draft January 31, 2025 18:48
@ripatel-fd ripatel-fd force-pushed the ripatel/netlink-tile branch 2 times, most recently from 4b02d01 to ef2189f Compare January 31, 2025 18:53
@ripatel-fd ripatel-fd force-pushed the ripatel/netlink-tile branch from ef2189f to 4bfee16 Compare January 31, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Net tile v2: ARP/routing isolation
5 participants