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

As the f struct was allocated right before basic_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_basic.c