[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110212021441.GA3035@sammy.paulus.ozlabs.org>
Date: Sat, 12 Feb 2011 13:14:41 +1100
From: Paul Mackerras <paulus@...ba.org>
To: Ian Molton <ian.molton@...labora.co.uk>
Cc: netdev@...r.kernel.org, rdunlap@...otime.net, isdn@...ux-pingi.de,
arnd@...db.de, davem@...emloft.net, herbert@...dor.apana.org.au,
ebiederm@...ssion.com
Subject: Re: [RFD][PATCH] Add JMEMCMP to Berkeley Packet Filters
On Thu, Feb 10, 2011 at 12:14:46PM +0000, Ian Molton wrote:
> This patch implements an extension for BPF to allow filter programs to use a
> data section, along with a MEMCMP instruction.
>
> There are a few issues noted in the patch itself, which can easily be
> addressed, and I would like to check wether sk_run_filter is ever expected to
> be called from a context that cannot sleep (I dont think it is).
The ppp driver (ppp_generic.c) calls sk_run_filter inside a region
protected by spin_lock_bh, so we can't sleep there. Having sk_run_filter
potentially sleep would make it useless for ppp.
Paul.
--
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