From: Laszlo Ersek <lersek@redhat.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"jeremy@goop.org" <jeremy@goop.org>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [Xen-devel] [PATCH] xen-netfront: correct MAX_TX_TARGET calculation.
Date: Fri, 03 Feb 2012 13:27:56 +0100 [thread overview]
Message-ID: <4F2BD2CC.4050906@redhat.com> (raw)
In-Reply-To: <1327660589.2585.14.camel@leeni.uk.xensource.com>
On 01/27/12 11:36, Wei Liu wrote:
> On Thu, 2012-01-26 at 18:19 +0000, Konrad Rzeszutek Wilk wrote:
>> On Thu, Jan 26, 2012 at 05:23:23PM +0000, Wei Liu wrote:
>>
>> Can you give some more details please? What is the impact of
>> not having this? Should it be backported to stable?
>>
>
> I think it will not cause crash, only the scratch space size is
> affected, thus impacting tx batching a bit.
>
> As the tx structure is bigger than rx structure. I think scratch space
> size is likely to shrink after correction.
It also seems to affect the netfront_tx_slot_available() function,
making it stricter (likely). Before the patch, the function may have
reported available slots when there were none, causing spurious(?) queue
wakeups in xennet_maybe_wake_tx(), and not stopping the queue in
xennet_start_xmit() when it should have(?).
It seems there are no further uses of TX_MAX_TARGET, and for bounds
checking NET_TX_RING_SIZE was used (which was always correct). So I
guess the typo may have caused some performance degradation.
I can't either prove or disprove a DoS-like busy loop in the pre-patch form.
Laszlo
next prev parent reply other threads:[~2012-02-03 12:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-26 17:23 [PATCH] xen-netfront: correct MAX_TX_TARGET calculation Wei Liu
2012-01-26 18:19 ` Konrad Rzeszutek Wilk
2012-01-27 10:36 ` Wei Liu
2012-01-27 10:36 ` Wei Liu
2012-02-03 12:27 ` Laszlo Ersek [this message]
2012-02-03 12:59 ` [Xen-devel] " Laszlo Ersek
2012-02-03 13:26 ` Jan Beulich
2012-02-03 13:39 ` Laszlo Ersek
2012-01-26 18:48 ` David Miller
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=4F2BD2CC.4050906@redhat.com \
--to=lersek@redhat.com \
--cc=Ian.Campbell@citrix.com \
--cc=jeremy@goop.org \
--cc=konrad.wilk@oracle.com \
--cc=netdev@vger.kernel.org \
--cc=wei.liu2@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.