From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: "Xu, Dongxiao" <dongxiao.xu@intel.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Steven Smith <steven.smith@citrix.com>
Subject: Re: [Pv-ops][PATCH 3/4 v2] Netback: Multiple tasklets support
Date: Tue, 4 May 2010 09:23:11 -0400 [thread overview]
Message-ID: <20100504132311.GA31716@phenom.dumpdata.com> (raw)
In-Reply-To: <D5AB6E638E5A3E4B8F4406B113A5A19A1D94B423@shsmsx501.ccr.corp.intel.com>
> > +static void netbk_add_netif(struct xen_netbk *netbk, int group_nr,
> > + struct xen_netif *netif)
> > +{
> > + int i;
> > + int min_netfront_count;
> > + int min_group = 0;
> > + spin_lock(&netbk->group_operation_lock);
> > + min_netfront_count = netbk[0].netfront_count;
> > + for (i = 0; i < group_nr; i++) {
> > + if (netbk[i].netfront_count < min_netfront_count) {
> > + min_group = i;
> > + min_netfront_count = netbk[i].netfront_count;
> >
> > Should you have a 'break' here? I am not sure if it makes sense to go
> > through all of the tasklets to set the min_group and
> > min_netfrount_count to the last one?
>
> To find the minimum count, I think it should go through all the tasklsets.
Ahh yes (duh!). I missed the 'min_netfrount_count' assigment! That makes much
more sense.
.. snip ..
> > Say you have 7 VIFs and only 4 VCPUs, are these netfront_count values
> > correct?
> >
> > netbk[0].netfront_count == 1; /* vif0 added */
> > netbk[3].netfront_count == 1; /* vif1 added */
> > netbk[2].netfront_count == 1; /* vif2 added */
> > netbk[1].netfront_count == 1; /* vif3 added */
> > netbk[0].netfront_count == 2; /* vif4 added */
> > netbk[3].netfront_count == 2; /* vif5 added */
> > netbk[2].netfront_count == 2; /* vif6 added */
>
> Basically it is true, but the order may be changed.
<nods>
prev parent reply other threads:[~2010-05-04 13:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-29 14:28 [Pv-ops][PATCH 3/4 v2] Netback: Multiple tasklets support Xu, Dongxiao
2010-05-03 16:06 ` Konrad Rzeszutek Wilk
2010-05-04 0:55 ` Xu, Dongxiao
2010-05-04 13:23 ` Konrad Rzeszutek Wilk [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100504132311.GA31716@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=dongxiao.xu@intel.com \
--cc=jeremy@goop.org \
--cc=steven.smith@citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.