diff options
| author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2025-05-30 13:33:17 +0900 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2025-07-14 05:25:34 -0400 |
| commit | 14f521f491063136bb4aa282c9d29735c78ee433 (patch) | |
| tree | 545765f03f1bba98e6ca4db731e7de9db253c3a1 /net/net.c | |
| parent | 52f45faa4f843617ae09e7965aec963fab3fb564 (diff) | |
| download | focaccia-qemu-14f521f491063136bb4aa282c9d29735c78ee433.tar.gz focaccia-qemu-14f521f491063136bb4aa282c9d29735c78ee433.zip | |
net/vhost-vdpa: Report hashing capability
Report hashing capability so that virtio-net can deliver the correct capability information to the guest. Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Message-Id: <20250530-vdpa-v1-2-5af4109b1c19@daynix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'net/net.c')
| -rw-r--r-- | net/net.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c index 39d6f28158..d0ae3db0d8 100644 --- a/net/net.c +++ b/net/net.c @@ -573,6 +573,15 @@ void qemu_set_vnet_hdr_len(NetClientState *nc, int len) nc->info->set_vnet_hdr_len(nc, len); } +bool qemu_get_vnet_hash_supported_types(NetClientState *nc, uint32_t *types) +{ + if (!nc || !nc->info->get_vnet_hash_supported_types) { + return false; + } + + return nc->info->get_vnet_hash_supported_types(nc, types); +} + int qemu_set_vnet_le(NetClientState *nc, bool is_le) { #if HOST_BIG_ENDIAN |