]> git.baikalelectronics.ru Git - 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)
commita963702ad6ad928b9f2118adb85e4d15e2a24e63
tree382f6bf2f8de99794ce78aadf832f204f74745fb
parent826366b15e0ceebf8f45a42a86437de7e6349710
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