From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bcmv-tmail01.ecl.ntt.co.jp (bcmv-tmail01.ecl.ntt.co.jp [124.146.185.148]) by dpdk.org (Postfix) with ESMTP id E9AF41B12D for ; Mon, 4 Feb 2019 04:14:12 +0100 (CET) Received: from bcmv-ns01.ecl.ntt.co.jp (bcmv-ns01.ecl.ntt.co.jp [129.60.83.123]) by bcmv-tmail01.ecl.ntt.co.jp (8.14.4/8.14.4) with ESMTP id x143EAMT006202; Mon, 4 Feb 2019 12:14:10 +0900 Received: from bcmv-ns01.ecl.ntt.co.jp (localhost [127.0.0.1]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id A60591A5; Mon, 4 Feb 2019 12:14:10 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by bcmv-ns01.ecl.ntt.co.jp (Postfix) with ESMTP id 968559F; Mon, 4 Feb 2019 12:14:10 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: spp@dpdk.org, ferruh.yigit@intel.com, ogawa.yasufumi@lab.ntt.co.jp Date: Mon, 4 Feb 2019 12:11:56 +0900 Message-Id: <1549249921-31638-1-git-send-email-ogawa.yasufumi@lab.ntt.co.jp> X-Mailer: git-send-email 2.7.4 X-TM-AS-MML: disable Subject: [spp] [PATCH 0/5] Add config command X-BeenThere: spp@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Soft Patch Panel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2019 03:14:13 -0000 From: Yasufumi Ogawa `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