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 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel][PATCH][RFC] Using data polling mechanism in netfront tor

To: James Harper <james.harper@xxxxxxxxxxxxxxxx>, "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel][PATCH][RFC] Using data polling mechanism in netfront toreplace event notification between netback and netfront
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Thu, 10 Sep 2009 09:14:32 +0100
Cc:
Delivery-date: Thu, 10 Sep 2009 01:15:04 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AEC6C66638C05B468B556EA548C1A77D0177D1E4@trantor>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acox6jFOUMf61+LiTw60WvyWTJXRuAAAiMpAAACZSyY=
Thread-topic: [Xen-devel][PATCH][RFC] Using data polling mechanism in netfront toreplace event notification between netback and netfront
User-agent: Microsoft-Entourage/12.20.0.090605
On 10/09/2009 09:03, "James Harper" <james.harper@xxxxxxxxxxxxxxxx> wrote:

> I experimented with this in Windows too, but the timer resolution is too
> poor. I think you should also look at setting the 'event' parameter too.
> The current driver tells the backend to tell it as soon as there is a
> single packet ready to be notified (np->rx.sring->rsp_event =
> np->rx.rsp_cons + 1), but you could set it to a higher number and also
> use the timer, eg "tell me when there are 32 ring slots filled, or when
> the timer elapses". That way you should have less problems with
> overflows.
> 
> Also, I don't think you need to tell the backend to stop notifying you,
> just don't set the 'event' field in the frontend and then
> RING_PUSH_RESPONSES_AND_CHECK_NOTIFY in the backend will not return that
> a notification is required.

Yes, the ring event mechanism is already set up for supporting event
holdoff/mitigation. It's just not used smartly by netfront right now.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel