[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH net-next 2/2] xen-netfront: split event channels feature support
On 21/05/13 00:02, Wei Liu wrote: > This patch adds a new feature called feature-split-event-channels for > netfront, enabling it to handle TX and RX events separately. > > If netback does not support this feature, it falls back to use single event > channel. [...] > --- a/drivers/net/xen-netfront.c > +++ b/drivers/net/xen-netfront.c > @@ -1503,12 +1528,90 @@ static int xen_net_read_mac(struct xenbus_device > *dev, u8 mac[]) > return 0; > } > > +static int setup_netfront_single(struct netfront_info *info) > +{ > + int err; > + > + err = xenbus_alloc_evtchn(info->xbdev, &info->tx_evtchn); > + if (err < 0) > + goto fail; > + > + err = bind_evtchn_to_irqhandler(info->tx_evtchn, > + xennet_interrupt, > + 0, info->netdev->name, info); > + if (err < 0) > + goto bind_fail; > + info->rx_evtchn = info->tx_evtchn; > + info->rx_irq = info->tx_irq = err; > + dev_info(&info->xbdev->dev, > + "single event channel, evtchn = %d, irq = %d\n", > + info->tx_evtchn, info->tx_irq); This message is pointless chatter as the information is available elsewhere. Please remove. > + dev_info(&info->xbdev->dev, > + "split event channels, tx_evtchn/irq = %d/%d, rx_evtchn/irq = > %d/%d", > + info->tx_evtchn, info->tx_irq, > + info->rx_evtchn, info->rx_irq); Similarly. Otherwise, Reviewed-by: David Vrabel <david.vrabel@xxxxxxxxxx> David _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |