summary refs log tree commit diff stats
path: root/net/net.c
diff options
context:
space:
mode:
authorYuri Benditovich <yuri.benditovich@daynix.com>2023-08-01 01:31:46 +0300
committerJason Wang <jasowang@redhat.com>2023-09-18 14:36:13 +0800
commitf03e0cf63b97a2f98d3b642ee5e7b3bb4379b4b1 (patch)
treec79205f8ff2f632b9670b5f354fd3397f7713988 /net/net.c
parent2ab0ec31215e68f7af6b21b62e49141eb7c083e2 (diff)
downloadfocaccia-qemu-f03e0cf63b97a2f98d3b642ee5e7b3bb4379b4b1.tar.gz
focaccia-qemu-f03e0cf63b97a2f98d3b642ee5e7b3bb4379b4b1.zip
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.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/net.c b/net/net.c
index 543e6dec43..b110e61f66 100644
--- a/net/net.c
+++ b/net/net.c
@@ -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) {