From mboxrd@z Thu Jan 1 00:00:00 1970 From: aq Subject: Re: [PATCH] 1 of 2: default ssid to 0 Date: Sun, 26 Jun 2005 19:04:54 +0900 Message-ID: <9cde8bff05062603045533ebf@mail.gmail.com> References: Reply-To: aq Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Reiner Sailer Cc: xen-devel@lists.xensource.com, Stefan Berger List-Id: xen-devel@lists.xenproject.org On 6/26/05, Reiner Sailer wrote: > > Message: 7 > > Date: Sat, 25 Jun 2005 20:39:20 -0500 > > From: aq > > Subject: Re: [Xen-devel] [PATCH] 1 of 2: default ssid to 0 > > To: Stefan Berger > > Cc: xen-devel@lists.xensource.com > > Message-ID: <9cde8bff05062518394eab73cb@mail.gmail.com> > > Content-Type: text/plain; charset=3DISO-8859-1 > > > > On 6/25/05, Stefan Berger wrote: > > > Hello! > > > > > > Attached is the patch that changes the default ssid from 0xffffffff t= o > 0 > > > as discussed in previous emails. > > > > > > Signed-off-by: Reiner Sailer > > > Signed-off-by: Stefan Berger > > > > > > Stefan > > > > > > > > > > > + for(j=3D0; j<=3D CWALL_MAX_SSIDREFS; j++) > > + if ((0 < j) &&( j <=3D CWALL_MAX_TYPES)) > > + ssidrefs[j*CWALL_MAX_TYPES + j - 1] =3D htons(1); > > + > > > > why dont you run the loop from j=3D1? >=20 >=20 > because row j=3D0 is the new default ssid and has no types set. > We start with row j=3D1 and set the "diagonal" types to one. i meant in the above loop, if start from j=3D1 you can eliminate the check (if 0