Re: [PATCH net-next-2.6] rps: avoid one atomic in enqueue_to_backlog

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Changli Gao
Date: Friday, May 7, 2010 - 3:01 am

On Fri, May 7, 2010 at 5:51 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:

Why not use a wrapper function?

sth. like:

static inline int __napi_schedule_prep(struct napi_struct *n)
{
   return (!__test_and_set_bit(NAPI_STATE_SCHED, &n->state)
}

-- 
Regards,
Changli Gao(xiaosuo@gmail.com)
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH net-next-2.6] rps: Various optimizations, Eric Dumazet, (Thu May 6, 1:58 am)
Re: [PATCH net-next-2.6] rps: Various optimizations, David Miller, (Thu May 6, 10:07 pm)
Re: [PATCH net-next-2.6] rps: Various optimizations, Eric Dumazet, (Thu May 6, 10:16 pm)
Re: [PATCH net-next-2.6] rps: avoid one atomic in enqueue_ ..., Changli Gao, (Fri May 7, 3:01 am)