Soft Patch Panel
 help / color / mirror / Atom feed
* [spp] [PATCH 00/13] Move JSON utils from libs for running cmds
@ 2019-06-24  4:36 yasufum.o
  2019-06-24  4:36 ` [spp] [PATCH 01/13] shared/sec: rename ops for setup cmd response yasufum.o
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: yasufum.o @ 2019-06-24  4:36 UTC (permalink / raw)
  To: spp, ferruh.yigit, yasufum.o

From: Yasufumi Ogawa <yasufum.o@gmail.com>

There are many JSON utils in shared lib for running commands, and
hard to maintain because several features are defined in a huge file.
This series of patches is to separate JSON utils from other functions
and fix complex dependencies among them.

Yasufumi Ogawa (13):
  shared/sec: rename ops for setup cmd response
  shared/sec: rename functions for spp_mirror
  shared/sec: move principle JSON formatter funcs
  shared/sec: change order of args of JSON fmtters
  shared/sec: move JSON formatter to shard/secondary
  shared/sec: revise including headers
  shared/sec: move JSON formatters from cmd_runner
  shared/sec: move rest of JSON formatters
  shared/sec: move lcore funcs in response_info_list
  shared/sec: move ope cli-id in response_info_list
  shared/sec: move rest of ops in response_info_list
  shared/sec: remove local funcs from header
  shared/sec: refactor comments for JSON formatter

 src/mirror/Makefile                           |  11 +-
 src/mirror/spp_mirror.c                       |  75 +-
 src/mirror/spp_mirror.h                       |  26 -
 src/pcap/Makefile                             |   3 +-
 src/pcap/cmd_runner.c                         |   2 +-
 src/shared/secondary/json_helper.c            | 136 +++
 src/shared/secondary/json_helper.h            | 101 ++
 src/shared/secondary/return_codes.h           |  13 +
 .../secondary/spp_worker_th/cmd_parser.c      |   1 +
 .../spp_worker_th/cmd_res_formatter.c         | 831 +++++++++++++++
 .../spp_worker_th/cmd_res_formatter.h         |  83 ++
 .../secondary/spp_worker_th/cmd_runner.c      | 952 +-----------------
 .../secondary/spp_worker_th/cmd_utils.c       |   6 +-
 .../secondary/spp_worker_th/cmd_utils.h       |   8 +-
 .../secondary/spp_worker_th/conn_spp_ctl.c    |   3 +-
 .../secondary/spp_worker_th/mirror_deps.h     |  33 +-
 src/shared/secondary/spp_worker_th/spp_port.c |   1 +
 src/shared/secondary/spp_worker_th/vf_deps.h  |   2 +-
 .../{spp_worker_th => }/string_buffer.c       |   0
 .../{spp_worker_th => }/string_buffer.h       |   2 +
 src/vf/Makefile                               |   7 +-
 src/vf/classifier_mac.c                       |   6 +-
 src/vf/spp_forward.c                          |   5 +-
 src/vf/spp_vf.c                               |   3 +-
 24 files changed, 1260 insertions(+), 1050 deletions(-)
 delete mode 100644 src/mirror/spp_mirror.h
 create mode 100644 src/shared/secondary/json_helper.c
 create mode 100644 src/shared/secondary/json_helper.h
 create mode 100644 src/shared/secondary/return_codes.h
 create mode 100644 src/shared/secondary/spp_worker_th/cmd_res_formatter.c
 create mode 100644 src/shared/secondary/spp_worker_th/cmd_res_formatter.h
 rename src/shared/secondary/{spp_worker_th => }/string_buffer.c (100%)
 rename src/shared/secondary/{spp_worker_th => }/string_buffer.h (98%)

-- 
2.17.1


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

end of thread, other threads:[~2019-06-24  4:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-24  4:36 [spp] [PATCH 00/13] Move JSON utils from libs for running cmds yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 01/13] shared/sec: rename ops for setup cmd response yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 02/13] shared/sec: rename functions for spp_mirror yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 03/13] shared/sec: move principle JSON formatter funcs yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 04/13] shared/sec: change order of args of JSON fmtters yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 05/13] shared/sec: move JSON formatter to shard/secondary yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 06/13] shared/sec: revise including headers yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 07/13] shared/sec: move JSON formatters from cmd_runner yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 08/13] shared/sec: move rest of JSON formatters yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 09/13] shared/sec: move lcore funcs in response_info_list yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 10/13] shared/sec: move ope cli-id " yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 11/13] shared/sec: move rest of ops " yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 12/13] shared/sec: remove local funcs from header yasufum.o
2019-06-24  4:36 ` [spp] [PATCH 13/13] shared/sec: refactor comments for JSON formatter yasufum.o

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).