mirror of https://gitlab.com/qemu-project/qemu
virtio-net: fix rsc_ext compat handling
virtio_net_rsc_ext_num_{packets,dupacks} needs to be available
independently of the presence of VIRTIO_NET_HDR_F_RSC_INFO.
Fixes: 2974e916df
("virtio-net: support RSC v4/v6 tcp traffic for Windows HCK")
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20200427102415.10915-2-cohuck@redhat.com>
This commit is contained in:
parent
ee573f5326
commit
9904adfaca
|
@ -83,6 +83,8 @@
|
||||||
#define VIRTIO_NET_HDR_F_RSC_INFO 4 /* rsc_ext data in csum_ fields */
|
#define VIRTIO_NET_HDR_F_RSC_INFO 4 /* rsc_ext data in csum_ fields */
|
||||||
#define VIRTIO_NET_F_RSC_EXT 61
|
#define VIRTIO_NET_F_RSC_EXT 61
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline __virtio16 *virtio_net_rsc_ext_num_packets(
|
static inline __virtio16 *virtio_net_rsc_ext_num_packets(
|
||||||
struct virtio_net_hdr *hdr)
|
struct virtio_net_hdr *hdr)
|
||||||
{
|
{
|
||||||
|
@ -95,8 +97,6 @@ static inline __virtio16 *virtio_net_rsc_ext_num_dupacks(
|
||||||
return &hdr->csum_offset;
|
return &hdr->csum_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static VirtIOFeature feature_sizes[] = {
|
static 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)},
|
||||||
|
|
Loading…
Reference in New Issue