From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Liu Subject: Re: [Xen-devel] [PATCH net-next 1/2] xen-netback: split event channels feature support Date: Tue, 21 May 2013 15:33:57 +0100 Message-ID: <20130521143357.GO32007@zion.uk.xensource.com> References: <1369090931-27306-1-git-send-email-wei.liu2@citrix.com> <1369090931-27306-2-git-send-email-wei.liu2@citrix.com> <519B77DB.3040901@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Wei Liu , , , , To: David Vrabel Return-path: Received: from smtp.citrix.com ([66.165.176.89]:49490 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751913Ab3EUOeA (ORCPT ); Tue, 21 May 2013 10:34:00 -0400 Content-Disposition: inline In-Reply-To: <519B77DB.3040901@citrix.com> Sender: netdev-owner@vger.kernel.org List-ID: On Tue, May 21, 2013 at 02:34:19PM +0100, David Vrabel wrote: > > + > > +static irqreturn_t xenvif_rx_interrupt(int irq, void *dev_id) > > +{ > > + struct xenvif *vif = dev_id; > > + > > + if (vif->netbk == NULL) > > + return IRQ_NONE; > > I know the original code had this but this looks suspect to me. Event > channels are never shared so it does not make sense to ever return IRQ_NONE. > > Suggest making this return IRQ_HANDLED instead (and similarly in > xenvif_tx_interrupt()) and... > Fixed. > > +static irqreturn_t xenvif_interrupt(int irq, void *dev_id) > > +{ > > + struct xenvif *vif = dev_id; > > + > > + if (vif->netbk == NULL) > > + return IRQ_NONE; > > ... then you can remove this test. Fixed. > > > --- a/drivers/net/xen-netback/xenbus.c > > +++ b/drivers/net/xen-netback/xenbus.c > > @@ -114,6 +114,15 @@ static int netback_probe(struct xenbus_device *dev, > > goto abort_transaction; > > } > > > > + /* Split event channels support */ > > + err = xenbus_printf(xbt, dev->nodename, > > + "feature-split-event-channels", > > + "%u", 1); > > + if (err) { > > + message = "writing feature-split-event-channels"; > > + goto abort_transaction; > > + } > > + > > Event channels are currently a limited resource. Do we want to have a > knob to disable this feature? Knob feature_split_event_channels added. Wei.