diff options
author | Liu Jian <liujian56@huawei.com> | 2022-09-29 15:52:02 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-10-03 08:59:06 +0200 |
commit | 537dd2d9fb9f4aa7939fb4fcf552ebe4f497bd7e (patch) | |
tree | c346d5ef2525431db618326bf51cd3355c1a9fb5 /include/net/ip_tunnels.h | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse... (diff) | |
download | linux-537dd2d9fb9f4aa7939fb4fcf552ebe4f497bd7e.tar.xz linux-537dd2d9fb9f4aa7939fb4fcf552ebe4f497bd7e.zip |
net: Add helper function to parse netlink msg of ip_tunnel_encap
Add ip_tunnel_netlink_encap_parms to parse netlink msg of ip_tunnel_encap.
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/ip_tunnels.h')
-rw-r--r-- | include/net/ip_tunnels.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h index ced80e2f8b58..51da2957cf48 100644 --- a/include/net/ip_tunnels.h +++ b/include/net/ip_tunnels.h @@ -302,6 +302,9 @@ int ip_tunnel_newlink(struct net_device *dev, struct nlattr *tb[], struct ip_tunnel_parm *p, __u32 fwmark); 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); + extern const struct header_ops ip_tunnel_header_ops; __be16 ip_tunnel_parse_protocol(const struct sk_buff *skb); |