All of lore.kernel.org
 help / color / mirror / Atom feed
From: ~vlaomao <vlaomao@git.sr.ht>
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: Mon, 30 Jan 2023 20:28:44 +0300	[thread overview]
Message-ID: <167510561992.30819.15402058368832100381-1@git.sr.ht> (raw)
In-Reply-To: <167510561992.30819.15402058368832100381-0@git.sr.ht>

From: VlaoMao <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 04159c822..695ca2f92 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.34.5


  reply	other threads:[~2023-01-30 19:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-30 19:06 [PATCH qemu 0/1] vmxnet3: MAC address falls to permanent ~vlaomao
2023-01-30 17:28 ` ~vlaomao [this message]
2023-01-31 17:50   ` [PATCH qemu 1/1] vmxnet3: add mac address restore upon reset Laurent Vivier
  -- strict thread matches above, loose matches on Subject: below --
2023-01-31 18:23 [PATCH qemu 0/1] MAC address falls to permanent Vlao Mao
2023-01-31 18:23 ` [PATCH qemu 1/1] vmxnet3: add mac address restore upon reset Vlao Mao
2023-01-31 18:20 [PATCH qemu 0/1] MAC address falls to permanent Vlao Mao
2023-01-31 18:20 ` [PATCH qemu 1/1] vmxnet3: add mac address restore upon reset Vlao Mao
     [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=167510561992.30819.15402058368832100381-1@git.sr.ht \
    --to=vlaomao@git.sr.ht \
    --cc=dmitry@daynix.com \
    --cc=jasowang@redhat.com \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=vlaomao@gmail.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.