Skip to content

Commit

Permalink
mellanox benchmark: use packetblaster
Browse files Browse the repository at this point in the history
  • Loading branch information
eugeneia committed Jan 26, 2022
1 parent 7f967e4 commit 9adad52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/apps/mellanox/benchmark.lua
Expand Up @@ -140,7 +140,7 @@ function source_worker (pci, core, nqueues, idx, pktsize, dmacs, smacs, vlans, d
})
local q = idx
for _=1, nqueues do
config.app(c, "IO"..q, connectx.IO, {pciaddress=pci, queue="q"..q})
config.app(c, "IO"..q, connectx.IO, {pciaddress=pci, queue="q"..q, packetblaster=true})
config.link(c, "Source.output"..q.." -> IO"..q..".input")
q = q + 1
end
Expand Down Expand Up @@ -282,6 +282,7 @@ function Source:pull ()
for _, output in pairs(self.output) do
while not link.full(output) do
link.transmit(output, packet.clone(packets[band(cursor,mask)]))
--link.transmit(output, packets[band(cursor,mask)])
cursor = cursor + 1
end
end
Expand Down

0 comments on commit 9adad52

Please sign in to comment.