From 6a6895e10cc6d7f454e0fa9ef39e12143b833846 Mon Sep 17 00:00:00 2001 From: Eoghan Russell Date: Thu, 18 Jan 2024 15:53:39 +0000 Subject: [PATCH] use ddptool by default as fallback --- pkg/netdevice/pciNetDevice.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkg/netdevice/pciNetDevice.go b/pkg/netdevice/pciNetDevice.go index cf5ad570f..35eb7c8e6 100644 --- a/pkg/netdevice/pciNetDevice.go +++ b/pkg/netdevice/pciNetDevice.go @@ -126,8 +126,12 @@ func (nd *pciNetDevice) GetDDPProfiles() string { pfPCI := nd.GetPfPciAddr() ddpProfile, err = nd.getDDPProfile(pfPCI) if err != nil { - glog.Infof("GetDDPProfiles(): unable to get ddp profiles for PCI %s and PF PCI device %s : %q", pciAddr, pfPCI, err) - return "" + //default to ddptool if devlink failed + ddpProfile, err = utils.GetDDPProfiles(pciAddr) + if err != nil { + glog.Infof("GetDDPProfiles(): unable to get ddp profiles for PCI %s and PF PCI device %s : %q", pciAddr, pfPCI, err) + return "" + } } } return ddpProfile