Skip to content

Commit

Permalink
program.ipfix.probe_rss: make receive queue size configurable for mel…
Browse files Browse the repository at this point in the history
…lanox
  • Loading branch information
alexandergall committed Apr 1, 2020
1 parent 744d6d5 commit 3647611
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/program/ipfix/probe_rss/probe_rss.lua
Expand Up @@ -137,7 +137,8 @@ local function create_workers (probe_config, duration, busywait, jit, logger)
if not spec then
spec = { ifName = input.name,
ifAlias = input.description,
queues = {} }
queues = {},
recvq_size = input.config.recvq_size or 8192 }
mellanox[input.device] = spec
end
table.insert(spec.queues, { id = rssq })
Expand Down Expand Up @@ -216,7 +217,7 @@ local function create_workers (probe_config, duration, busywait, jit, logger)
local conf = {
pciaddress = device,
queues = spec.queues,
recvq_size = 8192
recvq_size = spec.recvq_size
}
local driver = pci.device_info(device).driver
app_graph.app(ctrl_graph, "ctrl_"..device,
Expand Down

0 comments on commit 3647611

Please sign in to comment.