]> git.ipfire.org Git - thirdparty/qemu.git/commit
vhost_net: Rename vhost_set_vring_enable() for clarity
authorLaurent Vivier <lvivier@redhat.com>
Wed, 9 Jul 2025 08:24:17 +0000 (10:24 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 14 Jul 2025 05:27:09 +0000 (13:27 +0800)
commit7136352b40631b058dd0fe731a0d404e761e799f
tree88c20a39539fcfcfe482ed88ad67758fbc0cf9c8
parent9b5b45c7173b0447ec19aed4b901fd22db83d7eb
vhost_net: Rename vhost_set_vring_enable() for clarity

This is a cosmetic change with no functional impact.

The function vhost_set_vring_enable() is specific to vhost_net and
is used outside of vhost_net.c (specifically, in
hw/net/virtio-net.c). To prevent confusion with other similarly named
vhost functions, such as the one found in cryptodev-vhost.c, it has
been renamed to vhost_net_set_vring_enable(). This clarifies that the
function belongs to the vhost_net module.

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
hw/net/virtio-net.c
include/net/vhost_net.h