DRA: Rename GetBaseDeviceID to GetDeviceID for SharedDeviceID

Signed-off-by: Sunyanan Choochotkaew <sunyanan.choochotkaew1@ibm.com>
This commit is contained in:
Sunyanan Choochotkaew
2026-02-12 13:47:11 +09:00
parent 89900005ee
commit e1a7952a6c
2 changed files with 2 additions and 2 deletions

View File

@@ -301,7 +301,7 @@ func (c *claimTracker) GatherAllocatedState() (*structured.AllocatedState, error
// This ensures backward compatibility with the original DRA behavior where devices
// could only be allocated exclusively to a single claim.
for sharedDeviceID := range allocatedSharedDeviceIDs {
allocated.Insert(sharedDeviceID.GetBaseDeviceID())
allocated.Insert(sharedDeviceID.GetDeviceID())
}
// Reset allocatedSharedDeviceIDs and aggregatedCapacity
allocatedSharedDeviceIDs = sets.New[structured.SharedDeviceID]()

View File

@@ -58,7 +58,7 @@ func (d SharedDeviceID) String() string {
return deviceIDStr
}
func (d SharedDeviceID) GetBaseDeviceID() DeviceID {
func (d SharedDeviceID) GetDeviceID() DeviceID {
return MakeDeviceID(d.Driver.String(), d.Pool.String(), d.Device.String())
}