diff options
author | Yuri Benditovich <yuri.benditovich@daynix.com> | 2023-08-01 01:31:46 +0300 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2023-09-18 14:36:13 +0800 |
commit | f03e0cf63b97a2f98d3b642ee5e7b3bb4379b4b1 (patch) | |
tree | c79205f8ff2f632b9670b5f354fd3397f7713988 /net/net.c | |
parent | 2ab0ec31215e68f7af6b21b62e49141eb7c083e2 (diff) |
tap: Add check for USO features
Tap indicates support for USO features according to
capabilities of current kernel module.
Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com>
Signed-off-by: Andrew Melnychecnko <andrew@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'net/net.c')
-rw-r--r-- | net/net.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -495,6 +495,15 @@ bool qemu_has_ufo(NetClientState *nc) return nc->info->has_ufo(nc); } +bool qemu_has_uso(NetClientState *nc) +{ + if (!nc || !nc->info->has_uso) { + return false; + } + + return nc->info->has_uso(nc); +} + bool qemu_has_vnet_hdr(NetClientState *nc) { if (!nc || !nc->info->has_vnet_hdr) { |