net: sched: cls_bpf: no need to call tcf_exts_change for newly allocated struct
authorJiri Pirko <jiri@mellanox.com>
Fri, 4 Aug 2017 12:29:10 +0000 (14:29 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 18:21:24 +0000 (11:21 -0700)
commit6839da326dfcb98bf8020d42b416636471f1e462
treeea3d1866e54a875275de6d9e54d8ea32e44f2ab8
parentff1f8ca0805ab03c31e14a9356aa2ac81d65c338
net: sched: cls_bpf: no need to call tcf_exts_change for newly allocated struct

As the prog struct was allocated right before cls_bpf_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_bpf.c