From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by dpdk.org (Postfix) with ESMTP id 99CE3FE5 for ; Fri, 31 Mar 2017 21:13:33 +0200 (CEST) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id v2VJDVZV006712 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Fri, 31 Mar 2017 12:13:32 -0700 (PDT) Received: from yow-cgts4-lx.wrs.com (128.224.145.137) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.294.0; Fri, 31 Mar 2017 12:13:31 -0700 From: Allain Legacy To: CC: Date: Fri, 31 Mar 2017 15:13:18 -0400 Message-ID: <20170331191320.143047-1-allain.legacy@windriver.com> X-Mailer: git-send-email 2.12.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [128.224.145.137] Subject: [dpdk-dev] [PATCH 0/2] testpmd load cmdline commands from file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2017 19:13:34 -0000 Enhancing test-pmd to be able to load CLI commands from file both at runtime and at startup. Usually the number of commands to run is small enough that a simple cut-n-paste does the trick, but while testing the flow API it was necessary to load several hundred commands and cut-n-paste could not keep up. I started with adding support to load the commands at startup (--cmdline-file=/home/ubuntu/somefile.txt), but then realized that I needed to remove/re-add commands at runtime so I added CLI commands to take care of that aspect as well ("testpmd> load /home/ubuntu/somefile.txt") I thought of removing the startup command support since the same could be accomplished by using the new "load" command once the process starts up, but then I realized that it may be useful for someone using non-interactive mode. I am open to the idea of squashing both commits together if necessary. Allain Legacy (2): app/testpmd: load cmdline commands on startup app/testpmd: load cmdline commands at runtime app/test-pmd/cmdline.c | 56 +++++++++++++++++++++++++++++++++++++++++++++++ app/test-pmd/parameters.c | 10 +++++++++ app/test-pmd/testpmd.c | 4 ++++ app/test-pmd/testpmd.h | 2 ++ 4 files changed, 72 insertions(+) -- 1.8.3.1