WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] Re: [3/11] [NET] front: Stop using rx->id

To: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [3/11] [NET] front: Stop using rx->id
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: 2006年7月27日 14:34:41 +0100
Cc: Xen Development Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2006年7月27日 06:35:01 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060727133035.GA17712@xxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060707141634.GA12031@xxxxxxxxxxxxxxxxxxx> <20060707141814.GD12031@xxxxxxxxxxxxxxxxxxx> <1c6ca61a39886933a523840193ff31a8@xxxxxxxxxxxx> <20060727131234.GA17367@xxxxxxxxxxxxxxxxxxx> <af2af8f19c21e0d170b71e33ffc979d4@xxxxxxxxxxxx> <20060727133035.GA17712@xxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 27 Jul 2006, at 14:30, Herbert Xu wrote:
But wouldn't the xennet_get_* functions wipe the entries, only to be
immediately filled in again by the assignment to e.g.,
np->rx_skbs[requeue_idx], so it would all work out okay (except a
needless wipe-then-rewrite)?
That was the reason of having two loops instead of the one. In the first
loop, we're not moving entries so we don't assign rx_skbs/grant_rx_ref
at all. In the second loop, we know that requeue_idx != i so we're
always moving entries forward in which case clearing the original position
is necessary.
It's not a time critical piece of code. I'd much rather have a single loop that wastes some small amount of time. That routine is confusing enough as it is. :-)
Also, what about putting the array-initialising loop back: reasonable?
 -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: [7/11] [NET] back: Added tx queue , Keir Fraser
Next by Date: Re: [Xen-devel] [PATCH] turn off writable page tables , Andrew Theurer
Previous by Thread: [Xen-devel] Re: [3/11] [NET] front: Stop using rx->id , Herbert Xu
Next by Thread: [Xen-devel] Re: [3/11] [NET] front: Stop using rx->id , Herbert Xu
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /