From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: xt_u32 20070605 (kernel) Date: Tue, 05 Jun 2007 13:59:26 +0200 Message-ID: <4665501E.3080203@trash.net> References: <46654BB0.4060201@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Cc: Netfilter Developer Mailing List To: Jan Engelhardt Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Jan Engelhardt wrote: >>>+static bool xt_u32_match(const struct sk_buff *skb, >>>+ const struct net_device *in, >>>+ const struct net_device *out, >>>+ const struct xt_match *match, const void *matchinfo, >>>+ int offset, unsigned int protoff, bool *hotdrop) >>>+{ >>>+ const struct xt_u32 *data = matchinfo; >>>+ bool ret; >>>+ >>>+ spin_lock_bh(&xt_u32_lock); >>>+ ret = xt_u32_match_it(data, skb); >> >>Do we really need this wrapper? > > > I thought "yes". Otherwise, I'd need a spin_unlock_bh at every return in > xt_u32_match_it(), and also would need to fiddle data->invert too. > With two functions (_match and _match_it), this is done nicely IMHO. OK. >>>+MODULE_PARM_DESC(buffer_size, "Buffer size to hold a packet " >>>+ "(default: 65536 bytes)"); >> >>No parameter for this. We need 64k. > > > If no interface in a system has an MTU >17k (to be determined by > the system's owner), why need 64? Again, TSO. Long-term we want to move away from packet copying, so I don't want to add any module parameters for this.