From: P J P <ppandit@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: Qemu Developers <qemu-devel@nongnu.org>,
Jason Wang <jasowang@redhat.com>, Li Qiang <liqiang6-s@360.cn>,
Leon Alrae <leon.alrae@imgtec.com>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: Re: [Qemu-devel] [PATCH] net: mipsnet: check transmit buffer size before sending
Date: Fri, 3 Jun 2016 01:15:54 +0530 (IST) [thread overview]
Message-ID: <alpine.LFD.2.20.1606030111290.25915@wniryva> (raw)
In-Reply-To: <CAFEAcA_a1nRknWwbu4SS2ehMp6o-4OgOQoTntRbSM5fSD3RVZw@mail.gmail.com>
+-- On Thu, 2 Jun 2016, Peter Maydell wrote --+
| > case MIPSNET_TX_DATA_COUNT:
| > - s->tx_count = (val <= MAX_ETH_FRAME_SIZE) ? val : 0;
| > + s->tx_count = (val < MAX_ETH_FRAME_SIZE) ? val : MAX_ETH_FRAME_SIZE;
| > s->tx_written = 0;
|
| This is a behaviour change -- the register will now read
| back as MAX_ETH_FRAME_SIZE rather than 0 if written with
| an overlarge value.
IIUC, 's->tx_count' indicates expected packet data length to be processed.
Maybe if this value was zero, packet was not to be sent; not sure.
| Do we have any documentation on how this (simulated)
| device is supposed to behave in this case?
I tried to find a specification, but didn't come across any.
Thank you.
--
Prasad J Pandit / Red Hat Product Security Team
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F
next prev parent reply other threads:[~2016-06-02 19:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-02 6:44 [Qemu-devel] [PATCH] net: mipsnet: check transmit buffer size before sending P J P
2016-06-02 9:28 ` Peter Maydell
2016-06-02 19:45 ` P J P [this message]
2016-06-07 5:02 ` P J P
2016-06-08 6:38 ` Jason Wang
2016-06-08 7:47 ` P J P
2016-06-13 8:35 ` Aurelien Jarno
2016-06-14 3:48 ` Jason Wang
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=alpine.LFD.2.20.1606030111290.25915@wniryva \
--to=ppandit@redhat.com \
--cc=aurelien@aurel32.net \
--cc=jasowang@redhat.com \
--cc=leon.alrae@imgtec.com \
--cc=liqiang6-s@360.cn \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).