Skip to content

ss: Minor code review

Phil Sutter netdev 2 versions – Applied

Status from this message: Applied, thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest18 patches 3 repliesApplied
  2. v118 patches 1 replySuperseded

Changes in v2 from the cover letter

- Rebased onto current upstream, resolved conflicts in patch 4 generated by previously added SCTP socket support.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/18ss: Mark fall through in arg parsing switch()misc/ss.c+1 -00 replies
2/18ss: Drop empty lines in UDP outputmisc/ss.c+1 -10 replies
3/18ss: Add missing tab when printing UNIX detailsmisc/ss.c+2 -20 replies
4/18ss: Use sockstat->type in all socket typesmisc/ss.c+74 -580 replies
5/18ss: introduce proc_ctx_print()misc/ss.c+14 -350 replies
6/18ss: Drop list traversal from unix_stats_print()misc/ss.c+64 -730 replies
7/18ss: Eliminate unix_use_proc()misc/ss.c+2 -60 replies
8/18ss: Turn generic_proc_open() wrappers into macrosmisc/ss.c+19 -702 replies
9/18ss: Make tmr_name local to tcp_timer_print()misc/ss.c+9 -90 replies
10/18ss: Make user_ent_hash_build_init local to user_ent_hash_build()misc/ss.c+1 -20 replies
11/18ss: Make some variables function-localmisc/ss.c+1 -30 replies
12/18ss: Make slabstat_ids local to get_slabstat()misc/ss.c+7 -90 replies
13/18ss: Get rid of useless goto in handle_follow_request()misc/ss.c+2 -40 replies
14/18ss: Get rid of single-fielded struct snmpstatmisc/ss.c+3 -70 replies
15/18ss: Make unix_state_map local to unix_show()misc/ss.c+2 -30 replies
16/18ss: Make sstate_name local to sock_state_print()misc/ss.c+14 -150 replies
17/18ss: Make sstate_namel local to scan_state()misc/ss.c+14 -150 replies
18/18ss: unix_show: No need to initialize members of calloc'ed structsmisc/ss.c+0 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [iproute PATCH v2 00/18] ss: Minor code review

This is a series of misc changes to ss code which happened as fall-out when working on a unified output formatter (still unfinished).

Changes since v1:
- Rebased onto current upstream, resolved conflicts in patch 4 generated by previously added SCTP socket support.

Phil Sutter (18):
ss: Mark fall through in arg parsing switch()
ss: Drop empty lines in UDP output
ss: Add missing tab when printing UNIX details
ss: Use sockstat->type in all socket types
ss: introduce proc_ctx_print()
ss: Drop list traversal from unix_stats_print()
ss: Eliminate unix_use_proc()
ss: Turn generic_proc_open() wrappers into macros
ss: Make tmr_name local to tcp_timer_print()
ss: Make user_ent_hash_build_init local to user_ent_hash_build()
ss: Make some variables function-local
ss: Make slabstat_ids local to get_slabstat()
ss: Get rid of useless goto in handle_follow_request()
ss: Get rid of single-fielded struct snmpstat
ss: Make unix_state_map local to unix_show()
ss: Make sstate_name local to sock_state_print()
ss: Make sstate_namel local to scan_state()
ss: unix_show: No need to initialize members of calloc'ed structs

 misc/ss.c | 532 ++++++++++++++++++++++++++------------------------------------
 1 file changed, 224 insertions(+), 308 deletions(-)
Signature · 1 line
2.10.0