net: convert rps_needed and rfs_needed to new static branch api
We prefer static_branch_unlikely() over static_key_false() these days. Signed-off-by: Eric Dumazet <edumazet@google.com> Acked-by: Soheil Hassas Yeganeh <soheil@google.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
7c1508e5f6
commit
dc05360fee
@@ -1042,7 +1042,7 @@ static int tun_net_close(struct net_device *dev)
|
||||
static void tun_automq_xmit(struct tun_struct *tun, struct sk_buff *skb)
|
||||
{
|
||||
#ifdef CONFIG_RPS
|
||||
if (tun->numqueues == 1 && static_key_false(&rps_needed)) {
|
||||
if (tun->numqueues == 1 && static_branch_unlikely(&rps_needed)) {
|
||||
/* Select queue was not called for the skbuff, so we extract the
|
||||
* RPS hash and save it into the flow_table here.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user