From f03e0cf63b97a2f98d3b642ee5e7b3bb4379b4b1 Mon Sep 17 00:00:00 2001 From: Yuri Benditovich Date: Tue, 1 Aug 2023 01:31:46 +0300 Subject: tap: Add check for USO features Tap indicates support for USO features according to capabilities of current kernel module. Signed-off-by: Yuri Benditovich Signed-off-by: Andrew Melnychecnko Signed-off-by: Jason Wang --- net/net.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'net/net.c') 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) { -- cgit 1.4.1