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] VNIF: Using smart polling instead of event notifi

To: "Xu, Dongxiao" <dongxiao.xu@xxxxxxxxx>
Subject: Re: [Xen-devel][PATCH] VNIF: Using smart polling instead of event notification.
From: Paul Durrant <paul.durrant@xxxxxxxxxx>
Date: Thu, 1 Oct 2009 15:21:10 +0100
Cc: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <Keir.Fraser@xxxxxxxxxxxxx>
Delivery-date: Thu, 01 Oct 2009 07:21:31 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <EADF0A36011179459010BDF5142A457501CEB99EAF@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
References: <EADF0A36011179459010BDF5142A457501CEB99EAF@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)
Xu, Dongxiao wrote:
    We found that the event notification frequency is still high in some 
network cases. NAPI polls only for a little
time slot and does not efficient enough in our backend/frontend case. Actually 
our patch repeated calling NAPI
interface to do more polling, and netback will NOT notify netfront during this 
period. Once netfront polling out
all the data, and finds that there is no more data arrive/send during the next 100ms, the timer will stop working to end the polling. This filed 'smart_poll_active' is shared by netfront and netback, to indicate whether netfront is polling data. So this filed is necessary for netback to notify netfront if this flag is not set. This field is different from the flag in xenstore, which indicates whether other-end has this new feature. If other-end doesn't support the new feature, everything goes in the original way.

If you want to prevent event notification, why not simply mask out your port?

  Paul

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