Re: [RFC PATCH 1/5] net: implement support for low latency socketpolling

From: Cong Wang
Date: Mon Mar 04 2013 - 02:24:03 EST


On Wed, 27 Feb 2013 at 17:55 GMT, Eliezer Tamir <eliezer.tamir@xxxxxxxxxxxxxxxxxx> wrote:
> +static inline void skb_mark_ll(struct napi_struct *napi, struct sk_buff *skb)
> +{
> + skb->dev_ref = napi;
> +}
> +
> +static inline void sk_mark_ll(struct sock *sk, struct sk_buff *skb)
> +{
> + if (skb->dev_ref)
> + sk->dev_ref = skb->dev_ref;
> +
> +}


It is actually easier to read the code without making them be
functions...


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/