lkml.org 
[lkml]   [2013]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC PATCH 1/5] net: implement support for low latency socket polling
Date
On Wed, 27 Feb 2013 at 17:55 GMT, Eliezer Tamir <eliezer.tamir@linux.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...




\
 
 \ /
  Last update: 2013-03-04 09:01    [W:0.148 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site