]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/tun.c
net: convert rps_needed and rfs_needed to new static branch api
[linux.git] / drivers / net / tun.c
index 27798aacb671e3e8d754ea60dac528e8efdb52da..24d0220b9ba00724ebad94fbc58858a4abffb207 100644 (file)
@@ -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.
                 */