From: Mark Williamson Subject: Re: netfront: rx->offset: 12, size: 4294967295 Date: Wed, 6 Jun 2007 01:30:45 +0100 Message-ID: <200706060130.46980.mark.williamson@cl.cam.ac.uk> References: Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_2AgZGBerew7Bti2" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: Keir Fraser , Jacek Konieczny List-Id: xen-devel@lists.xenproject.org --Boundary-00=_2AgZGBerew7Bti2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline > On 4/6/07 15:05, "Jacek Konieczny" wrote: > > On Mon, Jun 04, 2007 at 01:52:30PM +0100, Keir Fraser wrote: > >> Can you try changing the definition of copying_receiver in > >> netback/common.h to be 'unsigned copying_receiver:1' instead of int:1? > > > > It works! See the attached patch (I have changed the other bitfield > > too). > > Great. Thanks for tracking this down! > > -- Keir There's also a bitfield that needs changing in netback.c - patch attached. It's not necessarily causing us any problems at the moment, but it'd be nice to to be bitten unexpectedly by these again :-) Cheers, Mark -- Dave: Just a question. What use is a unicyle with no seat? And no pedals! Mark: To answer a question with a question: What use is a skateboard? Dave: Skateboards have wheels. Mark: My wheel has a wheel! --Boundary-00=_2AgZGBerew7Bti2 Content-Type: text/x-csrc; charset="iso-8859-1"; name="netback-unsigned-bitfield.c" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="netback-unsigned-bitfield.c" # HG changeset patch # User mark.williamson@cl.cam.ac.uk # Date 1181089453 -3600 # Node ID 0321be2d3378f690fc72382069d217c957c714a9 # Parent bd94e510977bdf9a97f25c3ac8a11905e47873b1 Another fix to make a bitfield unsigned. Signed-off-by: Mark Williamson diff -r bd94e510977b -r 0321be2d3378 linux-2.6-xen-sparse/drivers/xen/netback/netback.c --- a/linux-2.6-xen-sparse/drivers/xen/netback/netback.c Mon May 07 20:35:25 2007 +0100 +++ b/linux-2.6-xen-sparse/drivers/xen/netback/netback.c Wed Jun 06 01:24:13 2007 +0100 @@ -46,7 +46,7 @@ struct netbk_rx_meta { struct netbk_rx_meta { skb_frag_t frag; int id; - int copy:1; + unsigned int copy:1; }; static void netif_idx_release(u16 pending_idx); --Boundary-00=_2AgZGBerew7Bti2 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_2AgZGBerew7Bti2--