Skip to content

Commit

Permalink
use ddptool by default as fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
Eoghan Russell committed Jan 18, 2024
1 parent dd8961f commit 6a6895e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/netdevice/pciNetDevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Check failure on line 129 in pkg/netdevice/pciNetDevice.go

View workflow job for this annotation

GitHub Actions / Golangci-lint

commentFormatting: put a space between `//` and comment text (gocritic)
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
Expand Down

0 comments on commit 6a6895e

Please sign in to comment.