]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
ipv6: Add "offload" and "trap" indications to routes
authorIdo Schimmel <idosch@mellanox.com>
Tue, 14 Jan 2020 11:23:12 +0000 (13:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2020 02:53:35 +0000 (18:53 -0800)
commitbb3c4ab93e44784c1e958bdbba7824bba40f23cd
tree382f6bf2f8de99794ce78aadf832f204f74745fb
parent90b93f1b31f86dcde2fa3c57f1ae33d28d87a1f8
ipv6: Add "offload" and "trap" indications to routes

In a similar fashion to previous patch, add "offload" and "trap"
indication to IPv6 routes.

This is done by using two unused bits in 'struct fib6_info' to hold
these indications. Capable drivers are expected to set these when
processing the various in-kernel route notifications.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: David Ahern <dsahern@gmail.com>
Acked-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip6_fib.h
net/ipv6/route.c