]> git.proxmox.com Git - mirror_qemu.git/commit
hw/net/virtio-net: make some VirtIONet const
authorHawkins Jiawei <yin31149@gmail.com>
Fri, 2 Jun 2023 11:52:15 +0000 (19:52 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 26 Jun 2023 13:50:00 +0000 (09:50 -0400)
commit705e89cfaafc54491482742a756cf661b48608d2
treed1235e11ad1b8ca8f60af3cc7348019b33b37c66
parent02d3bf099ba071f37145cfcc34d088e8f839072f
hw/net/virtio-net: make some VirtIONet const

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 <yin31149@gmail.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <489b09c3998ac09b9135e57a7dd8c56a4be8cdf9.1685704856.git.yin31149@gmail.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
Tested-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/net/virtio-net.c