nexthop: Add support for lwt encaps

Add support for NHA_ENCAP and NHA_ENCAP_TYPE. Leverages the existing code
for lwtunnel within fib_nh_common, so the only change needed is handling
the attributes in the nexthop code.

Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David Ahern
2019-05-24 14:43:07 -07:00
committed by David S. Miller
parent 53010f991a
commit b513bd035f
2 changed files with 39 additions and 1 deletions

View File

@@ -35,6 +35,9 @@ struct nh_config {
struct in6_addr ipv6;
} gw;
struct nlattr *nh_encap;
u16 nh_encap_type;
u32 nlflags;
struct nl_info nlinfo;
};