Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use moongen startTask instead of libmoon startTask call in packetgen #158

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions examples/netronome-packetgen/packetgen.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--[[
--[[

Copyright (C) 2016 Netronome Systems, Inc. All rights reserved.

Expand Down Expand Up @@ -31,7 +31,6 @@
packet sizes 1514, 570, and 64, respectively.
--]]

local libmoon = require "libmoon"
local mg = require "moongen"
local moongen = require "dpdk"
local dpdkc = require "dpdkc"
Expand Down Expand Up @@ -271,15 +270,15 @@ function master(...)
-- Check if the port must be used as a TX slave:
for _, txPortId in ipairs(clParams.txSlavePorts) do
if txPortId == portId then
libmoon.startTask("txSlave", devices[i], portId, slaveId, clParams)
mg.startTask("txSlave", devices[i], portId, slaveId, clParams)
slaveId = slaveId + 1
break
end
end
-- Check if the port must be used as a RX slave:
for _, rxPortId in ipairs(clParams.rxSlavePorts) do
if rxPortId == portId then
libmoon.startTask("rxSlave", devices[i], portId, slaveId, clParams)
mg.startTask("rxSlave", devices[i], portId, slaveId, clParams)
slaveId = slaveId + 1
break
end
Expand Down