Subject: Re: [PATCH net-next] net: use jump label patching for ingress qdisc in __netif_receive_skb_core

From: Alexei Starovoitov <[email-masked]>
Date: Fri, 10 Apr 2015 18:41:17 -0700

On 4/10/15 6:14 PM, Cong Wang wrote:
> So the following code is slow enough to deserve a static key
> optimization?
>
> struct netdev_queue *rxq = rcu_dereference(skb->dev->ingress_queue);
>
> if (!rxq || rcu_access_pointer(rxq->qdisc) == &noop_qdisc)
>      goto out;

It helps a little bit here and helps even more to my ingress_l2 patch
that is based on top of this one. Every cycle counts.