]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
virtio-net: Constify VirtIOFeature feature_sizes[]
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Tue, 11 May 2021 10:41:57 +0000 (12:41 +0200)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 13 May 2021 15:45:54 +0000 (17:45 +0200)
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20210511104157.2880306-4-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
hw/net/virtio-net.c

index 66b9ff451185c8ad20f3b94bd310b143d635c9c1..6b7e8dd04ef375b9889f5a6e1d7bac82a2ac11fa 100644 (file)
@@ -89,7 +89,7 @@
                                          VIRTIO_NET_RSS_HASH_TYPE_TCP_EX | \
                                          VIRTIO_NET_RSS_HASH_TYPE_UDP_EX)
 
-static VirtIOFeature feature_sizes[] = {
+static const VirtIOFeature feature_sizes[] = {
     {.flags = 1ULL << VIRTIO_NET_F_MAC,
      .end = endof(struct virtio_net_config, mac)},
     {.flags = 1ULL << VIRTIO_NET_F_STATUS,