From: "Leigh Brown" <[EMAIL PROTECTED]>
Date: Tue, 12 Dec 2006 22:22:13 -0000 (GMT)

> I'm not sure what the correct way forward is.  Could these functions
> not be just:
> 
> struct tcp_md5sig_pool *__tcp_get_md5sig_pool(int cpu)
> {
>         struct tcp_md5sig_pool **p = tcp_md5_sig_pool;
>       BUG_ON(!p);
>       return *per_cpu_ptr(p, cpu);
> }
> 
> void __tcp_put_md5sig_pool(void) {
>         /* nuffin */
> }
> 
> In other words, can we assume that the pool is allocated when we call
> tcp_get_md5sig_pool?

I think the issue is that we need to get a balanced get_cpu()/put_cpu()
in there somehow.

I'll take a look at this later today, thanks for pointing it out.

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to