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

As the new struct just was allocated, so 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_cgroup.c