-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the problems with save command for lua scripts
Removed the decompile/compile/sendPkt/recvPkt references. Compiled with DPDK 24.03.0 Signed-off-by: Keith Wiles <[email protected]>
- Loading branch information
1 parent
1b086c7
commit 3644adf
Showing
7 changed files
with
126 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
23.10.2 | ||
24.03.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
description = 'A Pktgen default simple configuration' | ||
|
||
# Setup configuration | ||
setup = { | ||
'exec': ( | ||
'sudo', '-E' | ||
), | ||
|
||
'devices': ( | ||
'03:00.0', | ||
'03:00.1', | ||
'05:00.0', | ||
'05:00.1', | ||
), | ||
# UIO module type, igb_uio, vfio-pci or uio_pci_generic | ||
'uio': 'vfio-pci' | ||
} | ||
|
||
# Run command and options | ||
run = { | ||
'exec': ('sudo', '-E'), | ||
|
||
# Application name and use app_path to help locate the app | ||
'app_name': 'pktgen', | ||
|
||
# using (sdk) or (target) for specific variables | ||
# add (app_name) of the application | ||
# Each path is tested for the application | ||
'app_path': ( | ||
'./usr/local/bin/%(app_name)s', | ||
'/usr/local/bin/%(app_name)s' | ||
), | ||
|
||
'cores': '4,5-8,9-13', | ||
'nrank': '4', | ||
'proc': 'auto', | ||
'log': '7', | ||
'prefix': 'pg', | ||
|
||
'allowlist': ( | ||
'03:00.0', | ||
'03:00.1', | ||
'05:00.0', | ||
'05:00.1', | ||
), | ||
|
||
'opts': ( | ||
'-v', | ||
'-T', | ||
'-P', | ||
'-G', | ||
), | ||
'map': ( | ||
'[5:6-7].0', | ||
'[8:9].1', | ||
'[10:11].2', | ||
'[12:13].3', | ||
), | ||
|
||
'theme': 'themes/black-yellow.theme', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package.path = package.path ..";?.lua;test/?.lua;app/?.lua;" | ||
|
||
require "Pktgen" | ||
-- A list of the test script for Pktgen and Lua. | ||
-- Each command somewhat mirrors the pktgen command line versions. | ||
-- A couple of the arguments have be changed to be more like the others. | ||
-- | ||
|
||
prints("portStats", pktgen.portStats("all", "port")); | ||
prints("portStats", pktgen.portStats('2', 'port')); |