]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv4: Update ip_tunnel_metadata_cnt static key to modern api
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 8 May 2018 16:06:58 +0000 (09:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 19:13:33 +0000 (15:13 -0400)
commitdc15ada50ec6741143e98282dc3b52b086fd1149
tree12de564021d5493f2034d275e60db019fe2e32da
parent879562fea785e121d7acdb23e354bdcb6d7d39d8
net/ipv4: Update ip_tunnel_metadata_cnt static key to modern api

No changes in refcount semantics -- key init is false; replace

static_key_slow_inc|dec   with   static_branch_inc|dec
static_key_false          with   static_branch_unlikely

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ip_tunnels.h
net/ipv4/ip_tunnel_core.c