From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH] netfilter: xt_physdev fixes Date: Wed, 18 Feb 2009 19:14:03 +0100 Message-ID: <499C4FEB.7040706@trash.net> References: <497F4C2F.9000804@hp.com> <497F5BCD.9060807@hp.com> <497F5F86.9010101@hp.com> <498063E7.5030106@cosmosbay.com> <49808708.3050502@trash.net> <498090C1.5020400@cosmosbay.com> <49809716.3020204@cosmosbay.com> <4981CBE2.5020306@cosmosbay.com> <87ocxox0bu.fsf@basil.nowhere.org> <498330B2.4060004@cosmosbay.com> <20090130172705.GB18453@one.firstfloor.org> <499032A4.9090301@trash.net> <499C24FF.90302@cosmosbay.com> <499C2766.5090904@trash.net> <499C3871.4030600@cosmosbay.com> <499C4739.3000800@cosmosbay.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Netfilter Developers , Linux Network Development list To: Eric Dumazet Return-path: In-Reply-To: <499C4739.3000800@cosmosbay.com> Sender: netdev-owner@vger.kernel.org List-Id: netfilter-devel.vger.kernel.org Eric Dumazet wrote: > Hi Patrick > > Please find following patch to prepare next one (loop unrolling) > > I am not sure xt_physdev_info is aligned, either on an int or a long, > so please check my assertion before applying :) Yes, the private structures can assume alignment suitable for pointers and unsigned longs. > [PATCH] netfilter: xt_physdev fixes > > 1) physdev_mt() incorrectly assumes nulldevname[] is aligned on an int > > 2) It also uses word comparisons, while it could use long word ones. Applied, thanks.