@@ -221,6 +221,7 @@ struct VirtIONet {
struct EBPFRSSContext ebpf_rss;
};
+uint64_t virtio_net_guest_offloads_by_features(uint32_t features);
size_t virtio_net_handle_ctrl_iov(VirtIODevice *vdev,
const struct iovec *in_sg, unsigned in_num,
const struct iovec *out_sg,
@@ -845,7 +845,7 @@ static void virtio_net_apply_guest_offloads(VirtIONet *n)
!!(n->curr_guest_offloads & (1ULL << VIRTIO_NET_F_GUEST_UFO)));
}
-static uint64_t virtio_net_guest_offloads_by_features(uint32_t features)
+uint64_t virtio_net_guest_offloads_by_features(uint32_t features)
{
static const uint64_t guest_offloads_mask =
(1ULL << VIRTIO_NET_F_GUEST_CSUM) |
vdpa NIC can use it to know if it needs to restore guest offloads at startup / migration. Signed-off-by: Eugenio PĂ©rez <eperezma@redhat.com> --- include/hw/virtio/virtio-net.h | 1 + hw/net/virtio-net.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-)