Skip to content

Commit

Permalink
Merge pull request #70 from adrianchiris/fix-build-on-32bit
Browse files Browse the repository at this point in the history
Fix: build on 32bit system
  • Loading branch information
adrianchiris authored Aug 22, 2024
2 parents 3ca5e43 + 3b3b88a commit f71b8cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sriovnet_aux.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
)

const (
u32Mask = 0xffffffff
u32Mask uint32 = 0xffffffff
)

// GetNetDeviceFromAux gets auxiliary device name (e.g 'mlx5_core.sf.2') and
Expand Down Expand Up @@ -134,7 +134,7 @@ func GetAuxSFDevByPciAndSFIndex(pciAddress string, sfIndex uint32) (string, erro
continue
}

if uint32(idx&u32Mask) == sfIndex {
if uint32(idx)&u32Mask == sfIndex {
return dev, nil
}
}
Expand Down

0 comments on commit f71b8cb

Please sign in to comment.