Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH 0/6] Refactor common libs
@ 2019-01-15  3:27 ogawa.yasufumi
  2019-01-15  3:27 ` [spp] [PATCH 1/6] spp_primary: refactor common for primary ogawa.yasufumi
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: ogawa.yasufumi @ 2019-01-15  3:27 UTC (permalink / raw)
  To: ferruh.yigit, spp, ogawa.yasufumi

From: Yasufumi Ogawa <ogawa.yasufumi@lab.ntt.co.jp>

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-01-15  3:30 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-15  3:27 [spp] [PATCH 0/6] Refactor common libs ogawa.yasufumi
2019-01-15  3:27 ` [spp] [PATCH 1/6] spp_primary: refactor common for primary ogawa.yasufumi
2019-01-15  3:27 ` [spp] [PATCH 2/6] shared: refactor common for SPP secondaries ogawa.yasufumi
2019-01-15  3:27 ` [spp] [PATCH 3/6] spp_nfv: refactor common for spp_nfv ogawa.yasufumi
2019-01-15  3:27 ` [spp] [PATCH 4/6] shared: refactor common functions ogawa.yasufumi
2019-01-15  3:28 ` [spp] [PATCH 5/6] shared: refactor libs of SPP secondary ogawa.yasufumi
2019-01-15  3:28 ` [spp] [PATCH 6/6] spp_nfv: refactor file structure ogawa.yasufumi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).