qemu-cr16/include/net
Laurent Vivier ba5acc5d6e net: Add is_vhost_user flag to vhost_net struct
Introduce a boolean is_vhost_user field to the vhost_net
structure. This flag is initialized during vhost_net_init based
on whether the backend is vhost-user.

This refactoring simplifies checks for vhost-user specific behavior,
replacing direct comparisons of 'net->nc->info->type' with the new
flag. It improves readability and encapsulates the backend type
information directly within the vhost_net instance.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
2025-07-14 13:27:09 +08:00
..
announce.h net: remove AnnounceTimer from typedefs.h 2024-05-03 15:47:48 +02:00
can_emu.h net/can: Add can_dlc2len and can_len2dlc for CAN FD. 2020-09-30 19:11:37 +02:00
can_host.h qom: fix objects with improper parent type 2020-10-12 11:50:22 -04:00
checksum.h net: checksum: Convert data to void * 2024-11-25 13:59:50 +08:00
eth.h net: mark struct ip_header as QEMU_PACKED 2024-11-18 13:45:45 +01:00
filter.h qapi: Move @String out of common.json to discourage reuse 2024-02-12 10:04:32 +01:00
net.h net: Add get_vhost_net callback to NetClientInfo 2025-07-14 13:27:09 +08:00
queue.h net: Remove deadcode 2024-10-03 17:26:05 +03:00
slirp.h net: Remove the deprecated -tftp, -bootp, -redir and -smb options 2018-08-31 09:53:03 +02:00
tap.h net: Add get_vhost_net callback to NetClientInfo 2025-07-14 13:27:09 +08:00
vhost-vdpa.h net: Consolidate vhost feature bits into vhost_net structure 2025-07-14 13:27:09 +08:00
vhost_net.h net: Add is_vhost_user flag to vhost_net struct 2025-07-14 13:27:09 +08:00