[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <kh1i5m$jqp$1@ger.gmane.org>
Date: Mon, 4 Mar 2013 07:23:35 +0000 (UTC)
From: Cong Wang <xiyou.wangcong@...il.com>
To: linux-kernel@...r.kernel.org
Cc: netdev@...r.kernel.org, e1000-devel@...ts.sourceforge.net
Subject: Re: [RFC PATCH 1/5] net: implement support for low latency socket
polling
On Wed, 27 Feb 2013 at 17:55 GMT, Eliezer Tamir <eliezer.tamir@...ux.jf.intel.com> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists