Skip to content

Commit

Permalink
apps.mellanox.connectx: fixup lib.hardware.pci usage
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Aug 30, 2021
1 parent 909dca7 commit 6bca98b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apps/mellanox/connectx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,8 @@ function IO:new (conf)
-- This is also done in Connectex4:new() but might not have
-- happened yet.
pci.unbind_device_from_linux(pciaddress)
local mmio, fd = pci.map_pci_memory(pciaddress, 0, false)
local fd = pci.open_pci_resource_unlocked(pciaddress, 0)
local mmio = pci.map_pci_memory(fd)

local online = false -- True when queue is up and running
local cxq -- shm object containing queue control information
Expand Down

0 comments on commit 6bca98b

Please sign in to comment.