lwtunnel: change to use nla_parse_nested on new options
authorXin Long <lucien.xin@gmail.com>
Sun, 10 Nov 2019 04:16:22 +0000 (12:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Nov 2019 22:42:14 +0000 (14:42 -0800)
commited02551f58b92812974bf7bec6c9cc98c3e9263f
tree784db20a9f10532cb8b1f4a6d4449b86780e4243
parentfe2b8a880809060f8e9b9e7668f3d319fd09184f
lwtunnel: change to use nla_parse_nested on new options

As the new options added in kernel, all should always use strict
parsing from the beginning with nla_parse_nested(), instead of
nla_parse_nested_deprecated().

Fixes: b0a21810bd5e ("lwtunnel: add options setting and dumping for erspan")
Fixes: edf31cbb1502 ("lwtunnel: add options setting and dumping for vxlan")
Fixes: 4ece47787077 ("lwtunnel: add options setting and dumping for geneve")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel_core.c