summaryrefslogtreecommitdiffstats
path: root/include/net/ip6_fib.h
diff options
context:
space:
mode:
authorRoopa Prabhu2015-07-21 10:43:48 +0200
committerDavid S. Miller2015-07-21 19:39:04 +0200
commit19e42e45150672124b6a4341e2bc7982d247f0ac (patch)
treeeb160db4e0e26f493610d3fcf330512ab726145f /include/net/ip6_fib.h
parentipv4: support for fib route lwtunnel encap attributes (diff)
downloadkernel-qcow2-linux-19e42e45150672124b6a4341e2bc7982d247f0ac.tar.gz
kernel-qcow2-linux-19e42e45150672124b6a4341e2bc7982d247f0ac.tar.xz
kernel-qcow2-linux-19e42e45150672124b6a4341e2bc7982d247f0ac.zip
ipv6: support for fib route lwtunnel encap attributes
This patch adds support in ipv6 fib functions to parse Netlink RTA encap attributes and attach encap state data to rt6_info. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ip6_fib.h')
-rw-r--r--include/net/ip6_fib.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h
index 3b76849c190f..276328e3daa6 100644
--- a/include/net/ip6_fib.h
+++ b/include/net/ip6_fib.h
@@ -51,6 +51,8 @@ struct fib6_config {
struct nlattr *fc_mp;
struct nl_info fc_nlinfo;
+ struct nlattr *fc_encap;
+ u16 fc_encap_type;
};
struct fib6_node {
@@ -131,6 +133,7 @@ struct rt6_info {
/* more non-fragment space at head required */
unsigned short rt6i_nfheader_len;
u8 rt6i_protocol;
+ struct lwtunnel_state *rt6i_lwtstate;
};
static inline struct inet6_dev *ip6_dst_idev(struct dst_entry *dst)