summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorLiu Jian <liujian56@huawei.com>2022-09-29 21:52:03 +0800
committerDavid S. Miller <davem@davemloft.net>2022-10-03 07:59:06 +0100
commitb86fca800a6a3d439c454b462f7f067a18234e60 (patch)
tree66134500901af49825f4bad848794df05a0e529b /include/net
parent537dd2d9fb9f4aa7939fb4fcf552ebe4f497bd7e (diff)
downloadlwn-b86fca800a6a3d439c454b462f7f067a18234e60.tar.gz
lwn-b86fca800a6a3d439c454b462f7f067a18234e60.zip
net: Add helper function to parse netlink msg of ip_tunnel_parm
Add ip_tunnel_netlink_parms to parse netlink msg of ip_tunnel_parm. Reduces duplicate code, no actual functional changes. Signed-off-by: Liu Jian <liujian56@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ip_tunnels.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h
index 51da2957cf48..fca357679816 100644
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -305,6 +305,9 @@ void ip_tunnel_setup(struct net_device *dev, unsigned int net_id);
bool ip_tunnel_netlink_encap_parms(struct nlattr *data[],
struct ip_tunnel_encap *encap);
+void ip_tunnel_netlink_parms(struct nlattr *data[],
+ struct ip_tunnel_parm *parms);
+
extern const struct header_ops ip_tunnel_header_ops;
__be16 ip_tunnel_parse_protocol(const struct sk_buff *skb);