From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tama500.ecl.ntt.co.jp (tama500.ecl.ntt.co.jp [129.60.39.148]) by dpdk.org (Postfix) with ESMTP id 7F9FE1B42F for ; Tue, 25 Dec 2018 08:37:49 +0100 (CET) Received: from vc1.ecl.ntt.co.jp (vc1.ecl.ntt.co.jp [129.60.86.153]) by tama500.ecl.ntt.co.jp (8.13.8/8.13.8) with ESMTP id wBP7blbc000567; Tue, 25 Dec 2018 16:37:47 +0900 Received: from vc1.ecl.ntt.co.jp (localhost [127.0.0.1]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 98718EA7D07; Tue, 25 Dec 2018 16:37:47 +0900 (JST) Received: from localhost.localdomain (lobster.nslab.ecl.ntt.co.jp [129.60.13.95]) by vc1.ecl.ntt.co.jp (Postfix) with ESMTP id 8B24EEA74AC; Tue, 25 Dec 2018 16:37:47 +0900 (JST) From: ogawa.yasufumi@lab.ntt.co.jp To: ferruh.yigit@intel.com, spp@dpdk.org, ogawa.yasufumi@lab.ntt.co.jp Date: Tue, 25 Dec 2018 16:35:31 +0900 Message-Id: <1545723335-3547-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/4] move params and funcs to header files 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: Tue, 25 Dec 2018 07:37:50 -0000 From: Yasufumi Ogawa Spp_nfv is one of the simplest secondaries in SPP, but still hard to understand the structure because all of codes are aggregated into one file. This update is to move variables and functions to header files. from spp_nfv. * src/nfv/params.h # define params and structs * src/nfv/command_utils.h # util functions for cmds * src/nfv/commands.h # spp_nfv cmds, add, del, or etc. * src/nfv/nfv.h # you include this file for all of others You should keep in mind of the order of headers other than `nfv.h`, or just include `nfv.h`. You should include `common.h` before all of these header files. Yasufumi Ogawa (4): spp_nfv: move params and funcs to header files spp_nfv: add header files of params and funcs spp_nfv: update makefile spp_nfv: move defines and util functions src/nfv/Makefile | 2 +- src/nfv/command_utils.h | 437 ++++++++++++++++++++ src/nfv/commands.h | 326 +++++++++++++++ src/nfv/main.c | 247 ++++++++++++ src/nfv/nfv.c | 1016 ----------------------------------------------- src/nfv/nfv.h | 13 + src/nfv/params.h | 41 ++ src/primary/main.c | 4 + src/shared/common.h | 25 +- 9 files changed, 1085 insertions(+), 1026 deletions(-) create mode 100644 src/nfv/command_utils.h create mode 100644 src/nfv/commands.h create mode 100644 src/nfv/main.c delete mode 100644 src/nfv/nfv.c create mode 100644 src/nfv/nfv.h create mode 100644 src/nfv/params.h -- 2.7.4