summaryrefslogtreecommitdiffstats
path: root/include/net/nexthop.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-05-24 23:43:07 +0200
committerDavid S. Miller <davem@davemloft.net>2019-05-29 06:37:30 +0200
commitb513bd035f4044aa2667fb01418918523a049b9c (patch)
treed27fafed8b200920244132105257d9970b453865 /include/net/nexthop.h
parentnexthop: Add support for IPv6 gateways (diff)
downloadlinux-b513bd035f4044aa2667fb01418918523a049b9c.tar.xz
linux-b513bd035f4044aa2667fb01418918523a049b9c.zip
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>
Diffstat (limited to 'include/net/nexthop.h')
-rw-r--r--include/net/nexthop.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/nexthop.h b/include/net/nexthop.h
index d188f16c0c4f..7cde03337e14 100644
--- a/include/net/nexthop.h
+++ b/include/net/nexthop.h
@@ -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;
};