[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1343748596.21269.315.camel@edumazet-glaptop>
Date: Tue, 31 Jul 2012 17:29:56 +0200
From: Eric Dumazet <eric.dumazet@...il.com>
To: David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>,
Alexander Duyck <alexander.h.duyck@...el.com>
Subject: Re: [PATCH] ipv4: percpu nh_rth_output cache
On Tue, 2012-07-31 at 17:22 +0200, Eric Dumazet wrote:
> From: Eric Dumazet <edumazet@...gle.com>
>
> + p = per_cpu_ptr(nh->nh_pcpu_rth_output,
> + raw_smp_processor_id());
> + }
Note : this can use :
p = __this_cpu_ptr(nh->nh_pcpu_rth_output);
and same thing in __mkroute_output()
prth = __this_cpu_ptr(FIB_RES_NH(*res).nh_pcpu_rth_output);
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists