]> git.baikalelectronics.ru Git - kernel.git/commit
net: sched: cls_route: no need to call tcf_exts_change for newly allocated struct
authorJiri Pirko <jiri@mellanox.com>
Fri, 4 Aug 2017 12:29:13 +0000 (14:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 18:21:24 +0000 (11:21 -0700)
commit8c9d6dba4b2acc5f3cf0cb900188472e1cc5c85a
tree4833d11379ac58bb4e93edaa7a1853af0b823d12
parent220e6b5b5a6bc8a74e3a1158444c519528267cf1
net: sched: cls_route: no need to call tcf_exts_change for newly allocated struct

As the f struct was allocated right before route4_set_parms call,
no need to use tcf_exts_change to do atomic change, and we can just
fill-up the unused exts struct directly by tcf_exts_validate.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_route.c