]> git.ipfire.org Git - thirdparty/qemu.git/commit
net: Add save_acked_features callback to vhost_net
authorLaurent Vivier <lvivier@redhat.com>
Wed, 9 Jul 2025 08:24:21 +0000 (10:24 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 14 Jul 2025 05:27:09 +0000 (13:27 +0800)
commit1652f1b335fb5bec921c64ff7f378e6732510ca4
treee12898426fc54280467eac9723d8de8e87492bbb
parentbd38794a1119ec8e3f0a7473458ce4cdd229bc42
net: Add save_acked_features callback to vhost_net

This commit introduces a save_acked_features function pointer to
vhost_net and converts the vhost_net function into a generic dispatcher.

The vhost-user backend provides the callback, making its function static.
With this change, no other module has a direct dependency on the
vhost-user implementation.

This cleanup allows for the complete removal of the net/vhost-user.h
header file.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/vhost_net-stub.c
hw/net/vhost_net.c
include/hw/virtio/vhost.h
include/net/vhost-user.h [deleted file]
include/net/vhost_net.h
net/tap.c
net/vhost-user-stub.c
net/vhost-user.c
net/vhost-vdpa.c