Re: [PATCH 1/2] virtio-net: make VirtIONet.vlans an array instead of a pointer

2025-08-06 Thread Philippe Mathieu-Daudé
On 3/8/25 09:38, Akihiko Odaki wrote: On 2025/08/02 23:45, Michael Tokarev wrote: On 02.08.2025 17:21, 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

Re: [PATCH 1/2] virtio-net: make VirtIONet.vlans an array instead of a pointer

2025-08-03 Thread Akihiko Odaki
On 2025/08/02 23:45, Michael Tokarev wrote: On 02.08.2025 17:21, 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

Re: [PATCH 1/2] virtio-net: make VirtIONet.vlans an array instead of a pointer

2025-08-02 Thread Michael Tokarev
On 02.08.2025 17:21, 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()

[PATCH 1/2] virtio-net: make VirtIONet.vlans an array instead of a pointer

2025-08-02 Thread Michael Tokarev
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 ---