From 9adad52634d226af9707cd7a829b44aaada145ba Mon Sep 17 00:00:00 2001 From: Max Rottenkolber Date: Thu, 27 Jan 2022 00:24:28 +0100 Subject: [PATCH] mellanox benchmark: use packetblaster --- src/apps/mellanox/benchmark.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/mellanox/benchmark.lua b/src/apps/mellanox/benchmark.lua index c00b23e202..7d632d2b9a 100644 --- a/src/apps/mellanox/benchmark.lua +++ b/src/apps/mellanox/benchmark.lua @@ -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 @@ -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