[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHA+R7P1i1B2F5e7kR-rAsQPRL0F0=r7J06qu68kxQ5N9q5H9Q@mail.gmail.com>
Date: Mon, 22 Dec 2014 11:21:44 -0800
From: Cong Wang <cwang@...pensource.com>
To: Alexander Duyck <alexander.h.duyck@...hat.com>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: [RFC PATCH 01/17] fib_trie: Update usage stats to be percpu
instead of global variables
On Mon, Dec 22, 2014 at 9:40 AM, Alexander Duyck
<alexander.h.duyck@...hat.com> wrote:
> @@ -1388,7 +1388,7 @@ static int check_leaf(struct fib_table *tb, struct trie *t, struct leaf *l,
> }
>
> #ifdef CONFIG_IP_FIB_TRIE_STATS
> - t->stats.semantic_match_miss++;
> + this_cpu_ptr(t->stats->semantic_match_miss);
You mean this_cpu_inc() ?
--
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