mirror of https://gitee.com/openkylin/qemu.git
virtio-net: Constify VirtIOFeature feature_sizes[]
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210511104157.2880306-4-philmd@redhat.com>
This commit is contained in:
parent
01ce7724a1
commit
ad6461ad6e
|
@ -89,7 +89,7 @@
|
||||||
VIRTIO_NET_RSS_HASH_TYPE_TCP_EX | \
|
VIRTIO_NET_RSS_HASH_TYPE_TCP_EX | \
|
||||||
VIRTIO_NET_RSS_HASH_TYPE_UDP_EX)
|
VIRTIO_NET_RSS_HASH_TYPE_UDP_EX)
|
||||||
|
|
||||||
static VirtIOFeature feature_sizes[] = {
|
static const VirtIOFeature feature_sizes[] = {
|
||||||
{.flags = 1ULL << VIRTIO_NET_F_MAC,
|
{.flags = 1ULL << VIRTIO_NET_F_MAC,
|
||||||
.end = endof(struct virtio_net_config, mac)},
|
.end = endof(struct virtio_net_config, mac)},
|
||||||
{.flags = 1ULL << VIRTIO_NET_F_STATUS,
|
{.flags = 1ULL << VIRTIO_NET_F_STATUS,
|
||||||
|
|
Loading…
Reference in New Issue