Re: [PATCH v3 3/6] hw/net/virtio-net: make some VirtIONet const

2023-06-01 Thread Eugenio Perez Martin
On Thu, Jun 1, 2023 at 3:49 PM Hawkins Jiawei wrote: > > The VirtIONet structure is not modified in > virtio_net_supported_guest_offloads(). > Therefore, make it const to allow this function to > accept const variables. > > Signed-off-by: Hawkins Jiawei Reviewed-by: Eugenio Pérez > --- > hw/n

[PATCH v3 3/6] hw/net/virtio-net: make some VirtIONet const

2023-06-01 Thread Hawkins Jiawei
The VirtIONet structure is not modified in virtio_net_supported_guest_offloads(). Therefore, make it const to allow this function to accept const variables. Signed-off-by: Hawkins Jiawei --- hw/net/virtio-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/net/virtio-net