From: Vlao Mao <vlaomao@gmail.com>
To: dmitry@daynix.com
Cc: jasowang@redhat.com, qemu-trivial@nongnu.org,
qemu-devel@nongnu.org, laurent@vivier.eu
Subject: [PATCH qemu 1/1] vmxnet3: add mac address restore upon reset
Date: Tue, 31 Jan 2023 21:23:37 +0300 [thread overview]
Message-ID: <20230131182337.15645-2-vlaomao@gmail.com> (raw)
In-Reply-To: <20230131182337.15645-1-vlaomao@gmail.com>
Changing the address with a subsequent reboot makes this address permanent until the vm is turned off
Signed-off-by: Vlao Mao <vlaomao@gmail.com>
---
hw/net/vmxnet3.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c
index 04159c8222..695ca2f923 100644
--- a/hw/net/vmxnet3.c
+++ b/hw/net/vmxnet3.c
@@ -1206,6 +1206,8 @@ static void vmxnet3_reset(VMXNET3State *s)
s->drv_shmem = 0;
s->tx_sop = true;
s->skip_current_tx_pkt = false;
+
+ vmxnet3_reset_mac(s);
}
static void vmxnet3_update_rx_mode(VMXNET3State *s)
--
2.35.1
next prev parent reply other threads:[~2023-01-31 18:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-31 18:23 [PATCH qemu 0/1] MAC address falls to permanent Vlao Mao
2023-01-31 18:23 ` Vlao Mao [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-01-31 18:20 Vlao Mao
2023-01-31 18:20 ` [PATCH qemu 1/1] vmxnet3: add mac address restore upon reset Vlao Mao
2023-01-30 19:06 [PATCH qemu 0/1] vmxnet3: MAC address falls to permanent ~vlaomao
2023-01-30 17:28 ` [PATCH qemu 1/1] vmxnet3: add mac address restore upon reset ~vlaomao
2023-01-31 17:50 ` Laurent Vivier
[not found] <167510125533.6740.18222174398575558338-1@git.sr.ht>
2023-01-30 18:11 ` Laurent Vivier
2023-01-30 18:58 ` Влад Мао
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=20230131182337.15645-2-vlaomao@gmail.com \
--to=vlaomao@gmail.com \
--cc=dmitry@daynix.com \
--cc=jasowang@redhat.com \
--cc=laurent@vivier.eu \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).