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 572D21B105 for ; Tue, 15 Jan 2019 04:30:16 +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 x0F3UEl7017613; Tue, 15 Jan 2019 12:30:14 +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 6AAEA17A; Tue, 15 Jan 2019 12:30:14 +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 4B0ABD6; Tue, 15 Jan 2019 12:30:14 +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, 15 Jan 2019 12:27:55 +0900 Message-Id: <1547522881-10105-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/6] Refactor common libs 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, 15 Jan 2019 03:30:18 -0000 From: Yasufumi Ogawa SPP's common libraries under `src/shared` are not organized well. For example, functions used only by spp_primary is included in `shared/common.c`, but it should be moved under `primary/`. This series of patches is to refactor file structure of SPP. * Move functions for spp_primary to `src/primary`. * Move functions for spp_nfv to `src/nfv`. * Add common libs for secondary processes in `src/shared/secondary/`. Yasufumi Ogawa (6): spp_primary: refactor common for primary shared: refactor common for SPP secondaries spp_nfv: refactor common for spp_nfv shared: refactor common functions shared: refactor libs of SPP secondary spp_nfv: refactor file structure src/Makefile | 2 +- src/nfv/Makefile | 5 +- src/nfv/commands.h | 72 +-- src/nfv/init.h | 44 ++ src/nfv/main.c | 31 +- src/nfv/nfv.h | 13 - src/nfv/nfv_status.c | 249 +++++++++ src/nfv/nfv_status.h | 24 + src/nfv/nfv_utils.h | 118 ++++ src/nfv/params.h | 9 +- src/primary/args.c | 48 +- src/primary/args.h | 10 +- src/primary/init.c | 137 ++++- src/primary/init.h | 16 +- src/primary/main.c | 52 +- src/primary/primary.h | 10 + src/shared/common.c | 526 +----------------- src/shared/common.h | 141 +---- .../secondary/add_port.h} | 194 ++----- src/shared/secondary/utils.c | 119 ++++ src/shared/secondary/utils.h | 39 ++ 21 files changed, 961 insertions(+), 898 deletions(-) create mode 100644 src/nfv/init.h delete mode 100644 src/nfv/nfv.h create mode 100644 src/nfv/nfv_status.c create mode 100644 src/nfv/nfv_status.h create mode 100644 src/nfv/nfv_utils.h create mode 100644 src/primary/primary.h rename src/{nfv/command_utils.h => shared/secondary/add_port.h} (61%) create mode 100644 src/shared/secondary/utils.c create mode 100644 src/shared/secondary/utils.h -- 2.17.1