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 EEE591B463 for ; Thu, 29 Nov 2018 10:50:51 +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 wAT9ong4026922; Thu, 29 Nov 2018 18:50:49 +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 A5FC372A; Thu, 29 Nov 2018 18:50:49 +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 902A4132; Thu, 29 Nov 2018 18:50:49 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp Date: Thu, 29 Nov 2018 18:48:32 +0900 Message-Id: <1543484914-25256-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/2] Add mirror 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: Thu, 29 Nov 2018 09:50:52 -0000 From: Yasufumi Ogawa Hi, This series of patches is to add `mirror` command to `spp.py`. The behaviour of spp_mirror is defined as SppMirror class to send a request and get a response. Here is an example to setup spp_mirror with this command. spp > mirror 1; component start mr1 5 mirror spp > mirror 1; port add ring:0 rx mr1 spp > mirror 1; port add ring:1 tx mr1 ... To find out more, refer the help. spp > help mirror Thanks, Yasufumi Yasufumi Ogawa (2): controller: add SppMirror class controller: add mirror command to SPP controller src/controller/commands/mirror.py | 327 ++++++++++++++++++++++++++++++++++++++ src/controller/shell.py | 100 +++++++++++- 2 files changed, 420 insertions(+), 7 deletions(-) create mode 100644 src/controller/commands/mirror.py -- 2.7.4