]> git.baikalelectronics.ru Git - kernel.git/commit
net: remove the unnecessary strict_start_type in some policies
authorXin Long <lucien.xin@gmail.com>
Thu, 21 Nov 2019 10:08:38 +0000 (18:08 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Nov 2019 19:46:18 +0000 (11:46 -0800)
commit4d3ac1526ff4b94c79167c8fa9d62076520c8d1f
treef054b17d18d0feac55dbcaf7350b2abc291a7209
parentc1c77ee95e000112cf0a222123ef0a75539948c3
net: remove the unnecessary strict_start_type in some policies

ct_policy and mpls_policy are parsed with nla_parse_nested(), which
does NL_VALIDATE_STRICT validation, strict_start_type is not needed
to set as it is actually trying to make some attributes parsed with
NL_VALIDATE_STRICT.

This patch is to remove it, and do the same on rtm_nh_policy which
is parsed by nlmsg_parse().

Suggested-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/nexthop.c
net/sched/act_ct.c
net/sched/act_mpls.c