-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create instance of IB interface in the host object
Signed-off-by: amaslennikov <[email protected]>
- Loading branch information
1 parent
0022c10
commit 2886ca6
Showing
8 changed files
with
78 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,16 +33,16 @@ type interfaceToConfigure struct { | |
} | ||
|
||
type sriov struct { | ||
utilsHelper utils.CmdInterface | ||
kernelHelper types.KernelInterface | ||
networkHelper types.NetworkInterface | ||
udevHelper types.UdevInterface | ||
vdpaHelper types.VdpaInterface | ||
utilsHelper utils.CmdInterface | ||
kernelHelper types.KernelInterface | ||
networkHelper types.NetworkInterface | ||
udevHelper types.UdevInterface | ||
vdpaHelper types.VdpaInterface | ||
infinibandHelper types.InfinibandInterface | ||
netlinkLib netlinkPkg.NetlinkLib | ||
dputilsLib dputilsPkg.DPUtilsLib | ||
sriovnetLib sriovnetPkg.SriovnetLib | ||
ghwLib ghwPkg.GHWLib | ||
netlinkLib netlinkPkg.NetlinkLib | ||
dputilsLib dputilsPkg.DPUtilsLib | ||
sriovnetLib sriovnetPkg.SriovnetLib | ||
ghwLib ghwPkg.GHWLib | ||
} | ||
|
||
func New(utilsHelper utils.CmdInterface, | ||
|
@@ -56,15 +56,15 @@ func New(utilsHelper utils.CmdInterface, | |
sriovnetLib sriovnetPkg.SriovnetLib, | ||
ghwLib ghwPkg.GHWLib) types.SriovInterface { | ||
return &sriov{utilsHelper: utilsHelper, | ||
kernelHelper: kernelHelper, | ||
networkHelper: networkHelper, | ||
udevHelper: udevHelper, | ||
vdpaHelper: vdpaHelper, | ||
kernelHelper: kernelHelper, | ||
networkHelper: networkHelper, | ||
udevHelper: udevHelper, | ||
vdpaHelper: vdpaHelper, | ||
infinibandHelper: infinibandHelper, | ||
netlinkLib: netlinkLib, | ||
dputilsLib: dputilsLib, | ||
sriovnetLib: sriovnetLib, | ||
ghwLib: ghwLib, | ||
netlinkLib: netlinkLib, | ||
dputilsLib: dputilsLib, | ||
sriovnetLib: sriovnetLib, | ||
ghwLib: ghwLib, | ||
} | ||
} | ||
|
||
|
@@ -476,6 +476,9 @@ func (s *sriov) configSriovVFDevices(iface *sriovnetworkv1.Interface) error { | |
if err := s.infinibandHelper.ConfigureVfGUID(addr, iface.PciAddress, vfID, pfLink); err != nil { | ||
return err | ||
} | ||
if err := s.kernelHelper.Unbind(iface.PciAddress); err != nil { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
adrianchiris
Collaborator
|
||
return err | ||
} | ||
} else { | ||
vfLink, err := s.VFIsReady(addr) | ||
if err != nil { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hi there,
I wanted to understand the reasoning behind unbinding the driver in this context. After performing the unbind operation, we encountered an issue where we could no longer retrieve the default driver for the virtual function (VF). This caused a problem in our setup. Could you please explain why the unbind is necessary and if there’s a way to address this issue?
Thanks for any insights you can provide!