[spp] [PATCH 0/5] Add config command
ogawa.yasufumi at lab.ntt.co.jp
ogawa.yasufumi at lab.ntt.co.jp
Mon Feb 4 04:11:56 CET 2019
From: Yasufumi Ogawa <ogawa.yasufumi at lab.ntt.co.jp>
`config` command is for managing default configurations of SPP CLI.
For example, you can change default command prompt `spp > ` to another
one.
List of all of configurations is referred with `config`, or list of
started with `p` is referred with `config p`.
# show all configs
spp > config
- max_secondary: "16" # The maximum number of secondary processes
- sec_nfv_nof_lcores: "1" # Default num of lcores for workers ...
- topo_size: "60%" # Percentage or ratio of topo
- sec_base_lcore: "1" # Shared lcore among secondaryes
- prompt: "spp > " # Command prompt
- sec_pcap_nof_lcores: "2" # Default num of lcores for ...
- sec_mirror_nof_lcores: "2" # Default num of lcores for ...
...
# only started with `p`
spp > config p
- prompt: "spp > " # Command prompt
To change configuration, specify key and its value.
# set prompt
Set prompt: "$ spp "
$ spp
Config params starting with `sec_` is used for options of `pri; launch`
command.
- sec_vf_nof_lcores
- sec_mirror_nof_lcores
- sec_pcap_nof_lcores
...
For instance, if secondary ID is `3` and `sec_vf_nof_lcores` is 3,
woker lcores is suggested as `3-5`, started from `3` and use three
cores.
Yasufumi Ogawa (5):
controller: add config command
controller: refactor pri launch command
controller: remove nouse check_sec_cmds
controller: add max_secondary to config
controller: change nof worker lcores configurable
src/controller/commands/pri.py | 121 ++++++++++++++++++++++++++------
src/controller/shell.py | 152 +++++++++++++++++++++++++++++------------
2 files changed, 210 insertions(+), 63 deletions(-)
--
2.7.4
More information about the spp
mailing list