From c9b22c9414752ac91c284867713bd9de0e06af80 Mon Sep 17 00:00:00 2001 From: Andrea Panattoni Date: Wed, 18 Mar 2026 11:24:56 +0100 Subject: [PATCH] handle: enable VF info collection by default for pkgHandle The package-level handle (pkgHandle) was initialized without collectVFInfo, causing package-level functions like LinkByName to no longer collect Virtual Function information. This restores the previous default behavior. Signed-off-by: Andrea Panattoni --- handle_linux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle_linux.go b/handle_linux.go index 358c175b9..5a521fc9a 100644 --- a/handle_linux.go +++ b/handle_linux.go @@ -10,7 +10,7 @@ import ( ) // Empty handle used by the netlink package methods -var pkgHandle = &Handle{} +var pkgHandle = &Handle{options: HandleOptions{collectVFInfo: true}} type HandleOptions struct { lookupByDump bool