From a9e4273d6960d1519d153f135ad5d292305f19e6 Mon Sep 17 00:00:00 2001 From: Andrew Durbin Date: Thu, 12 Dec 2024 21:00:05 -0700 Subject: [PATCH] Only check IsPort for iobundle types which are Net Skip over HDMI, COM. IsPort only checks Ifname which can incorrectly flag non-net devices as a port. Signed-off-by: Andrew Durbin (cherry picked from commit 7311ddf59a747d524cb1dd8a30754b542c6fa9f6) --- pkg/pillar/cmd/domainmgr/domainmgr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/pillar/cmd/domainmgr/domainmgr.go b/pkg/pillar/cmd/domainmgr/domainmgr.go index 5cf87227bb..075c8dbd5a 100644 --- a/pkg/pillar/cmd/domainmgr/domainmgr.go +++ b/pkg/pillar/cmd/domainmgr/domainmgr.go @@ -3168,7 +3168,7 @@ func updatePortAndPciBackIoBundle(ctx *domainContext, ib *types.IoBundle) (chang // EVE controller doesn't know it list = aa.ExpandControllers(log, list, hyper.PCISameController) for _, ib := range list { - if types.IsPort(ctx.deviceNetworkStatus, ib.Ifname) { + if types.IsPort(ctx.deviceNetworkStatus, ib.Ifname) && ib.Type.IsNet() { isPort = true keepInHost = true }