On 3/8/25 10:54, Michael Tokarev wrote:
This field is a fixed-size buffer (number of elements is MAX_VLAN,
known at build time).  There's no need to allocate it dynamically,
it can be made an integral part of VirtIONet structure.

This field is the only user of VMSTATE_BUFFER_POINTER_UNSAFE() macro.

Signed-off-by: Michael Tokarev <m...@tls.msk.ru>
---
v2: use VMSTATE_BUFFER_UNSAFE instead of VMSTATE_BUFFER
     as suggested by Akihiko Odaki.
     Only the first patch is resent, patch 2/2 is the same.

  hw/net/virtio-net.c            | 9 ++++-----
  include/hw/virtio/virtio-net.h | 2 +-
  2 files changed, 5 insertions(+), 6 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to