summaryrefslogtreecommitdiff
path: root/include/net/nexthop.h
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-05-24 14:43:07 -0700
committerDavid S. Miller <davem@davemloft.net>2019-05-28 21:37:30 -0700
commitb513bd035f4044aa2667fb01418918523a049b9c (patch)
treed27fafed8b200920244132105257d9970b453865 /include/net/nexthop.h
parent53010f991a9f5e4ed2db705ddde6ff32709192a2 (diff)
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;
};