From: Stefan Hajnoczi <stefanha@gmail.com>
To: David Vrabel <david.vrabel@citrix.com>
Cc: qemu-devel@nongnu.org, Jason Wang <jasowang@redhat.com>
Subject: Re: [Qemu-devel] [PATCHv1] rtl8139: save/load RxMulOk counter (again)
Date: Mon, 20 Jun 2016 13:36:11 +0100 [thread overview]
Message-ID: <20160620123611.GI14100@stefanha-x1.localdomain> (raw)
In-Reply-To: <1466181090-30169-1-git-send-email-david.vrabel@citrix.com>
[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]
On Fri, Jun 17, 2016 at 05:31:30PM +0100, David Vrabel wrote:
> Commit 9d29cdeaaca3a0383af764000b71492c4fc67c6e (rtl8139: port
> TallyCounters to vmstate) introduced in incompatibility in the v4
> format as it omitted the RxOkMul counter.
>
> There are presumably no users that were impacted by the v4 to v4'
> breakage, so increase the save version to 5 and re-add the field,
> keeping backward compatibility with v4'.
>
> Signed-off-by: David Vrabel <david.vrabel@citrix.com>
> ---
> hw/net/rtl8139.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
CCed Jason Wang, net maintainer.
David: Please CC maintainers so that your patch gets attention. You can
use scripts/get_maintainer.pl -f hw/net/rtl8139.c to list maintainers.
>
> diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c
> index 562c1fd..243dcd4 100644
> --- a/hw/net/rtl8139.c
> +++ b/hw/net/rtl8139.c
> @@ -1369,6 +1369,7 @@ static const VMStateDescription vmstate_tally_counters = {
> VMSTATE_UINT32(TxMCol, RTL8139TallyCounters),
> VMSTATE_UINT64(RxOkPhy, RTL8139TallyCounters),
> VMSTATE_UINT64(RxOkBrd, RTL8139TallyCounters),
> + VMSTATE_UINT32_V(RxOkMul, RTL8139TallyCounters, 5),
> VMSTATE_UINT16(TxAbt, RTL8139TallyCounters),
> VMSTATE_UINT16(TxUndrn, RTL8139TallyCounters),
> VMSTATE_END_OF_LIST()
> @@ -3222,7 +3223,7 @@ static void rtl8139_pre_save(void *opaque)
>
> static const VMStateDescription vmstate_rtl8139 = {
> .name = "rtl8139",
> - .version_id = 4,
> + .version_id = 5,
> .minimum_version_id = 3,
> .post_load = rtl8139_post_load,
> .pre_save = rtl8139_pre_save,
> --
> 2.1.4
>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
prev parent reply other threads:[~2016-06-20 12:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-17 16:31 [Qemu-devel] [PATCHv1] rtl8139: save/load RxMulOk counter (again) David Vrabel
2016-06-20 12:36 ` Stefan Hajnoczi [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=20160620123611.GI14100@stefanha-x1.localdomain \
--to=stefanha@gmail.com \
--cc=david.vrabel@citrix.com \
--cc=jasowang@redhat.com \
--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).