Skip to content
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