[IPv4]: FIB configuration using struct fib_config
Introduces struct fib_config replacing the ugly struct kern_rta prone to ordering issues. Avoids creating faked netlink messages for auto generated routes or requests via ioctl. A new interface net/nexthop.h is added to help navigate through nexthop configuration arrays. A new struct nl_info will be used to carry the necessary netlink information to be used for notifications later on. Signed-off-by:Thomas Graf <tgraf@suug.ch> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ip_fib.h 28 additions, 27 deletionsinclude/net/ip_fib.h
- include/net/netlink.h 10 additions, 0 deletionsinclude/net/netlink.h
- include/net/nexthop.h 33 additions, 0 deletionsinclude/net/nexthop.h
- net/ipv4/fib_frontend.c 294 additions, 70 deletionsnet/ipv4/fib_frontend.c
- net/ipv4/fib_hash.c 44 additions, 50 deletionsnet/ipv4/fib_hash.c
- net/ipv4/fib_lookup.h 3 additions, 8 deletionsnet/ipv4/fib_lookup.h
- net/ipv4/fib_semantics.c 116 additions, 269 deletionsnet/ipv4/fib_semantics.c
- net/ipv4/fib_trie.c 32 additions, 44 deletionsnet/ipv4/fib_trie.c
Loading