]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: Update generic_xdp_needed static key to modern api
authorDavidlohr Bueso <dave@stgolabs.net>
Tue, 8 May 2018 16:07:02 +0000 (09:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 19:13:34 +0000 (15:13 -0400)
commit02786475c74c7d0721b0142fac74108112cb456c
treeb113ce12cd5e7cd33574ef2844fdeb9ff2668d5b
parent39e8392201dcd02b7d70f2149e678035b20cc26a
net: Update generic_xdp_needed 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

Added a '_key' suffix to generic_xdp_needed, for better self
documentation.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c