Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by Matthieu Baerts
Tue, 24 Nov 2026 10:41
Re: [PATCH iproute2-next] ss: move to its own directory and split up ss.c
Author: Matthieu Baerts
Date: Tue, 24 Nov 2026 10:41
Date: Tue, 24 Nov 2026 10:41
67 lines
13490 bytes
13490 bytes
Hi Stephen, On 19/11/2026 03:40, Stephen Hemminger wrote: > The ss command has grown over time and was a single large file. > Move it and its filter parser to ss/ with their own Makefile, and > split ss.c by function: > > ss.h shared types, option flags and prototypes > ss.c main() and option parsing > output.c column layout and buffered output > sock.c output common to all socket families > filter.c socket selection and filter expressions > users.c socket owners and SELinux contexts from /proc > service.c port to service name resolution > inet.c inet_diag dumps, kill and TCPDIAG_FILE replay > tcp.c TCP, TLS and MPTCP details > sctp.c SCTP details > bpf.c BPF socket-local storage > unix.c, packet.c, xdp.c, netlink.c, vsock.c, tipc.c > one file per socket family > events.c -E event monitoring > summary.c -s summary Good idea to split ss.c! > Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> > --- > Makefile | 2 +- > misc/Makefile | 6 +- > misc/ss.c | 5845 --------------------------------- > ss/.gitignore | 2 + > ss/Makefile | 21 + > ss/bpf.c | 337 ++ > ss/events.c | 95 + > ss/filter.c | 927 ++++++ > ss/inet.c | 580 ++++ > ss/netlink.c | 205 ++ > ss/output.c | 529 +++ > ss/packet.c | 216 ++ > ss/sctp.c | 140 + > ss/service.c | 246 ++ > ss/sock.c | 276 ++ > ss/ss.c | 603 ++++ > ss/ss.h | 386 +++ > ss/ss_util.h | 23 + > ss/ssfilter.h | 34 + > ss/ssfilter.y | 369 +++ > ss/ssfilter_check.c | 104 + > ss/summary.c | 167 + > ss/tcp.c | 623 ++++ > ss/tipc.c | 119 + > ss/unix.c | 140 + > ss/users.c | 333 ++ > ss/vsock.c | 87 + > ss/xdp.c | 170 + > testsuite/Makefile | 2 +- > testsuite/tests/ss/ssfilter.t | 2 +- > 30 files changed, 6736 insertions(+), 5853 deletions(-) I was surprised that you ended up with ~900 more lines, but I think you missed the removal of misc/ssfilter* files. Cheers, Matt -- Sponsored by the NGI0 Core fund.
Re: [PATCH iproute2-next] ss: move to its own directory and split up ss.c
Author: Stephen Hemminger
Date: Wed, 25 Nov 2026 00:54
Date: Wed, 25 Nov 2026 00:54
12 lines
11268 bytes
11268 bytes
On Tue, 24 Nov 2026 11:41:09 +0100 Matthieu Baerts <matttbe@kernel.org> wrote: > I was surprised that you ended up with ~900 more lines, but I think you > missed the removal of misc/ssfilter* files. > > Cheers, > Matt Most of the ssfilter* files are build results from flex/bison so not actually in the repo.
Re: [PATCH iproute2-next] ss: move to its own directory and split up ss.c
Author: Matthieu Baerts
Date: Wed, 25 Nov 2026 08:55
Date: Wed, 25 Nov 2026 08:55
22 lines
11532 bytes
11532 bytes
On 25/11/2026 01:54, Stephen Hemminger wrote:
> On Tue, 24 Nov 2026 11:41:09 +0100
> Matthieu Baerts <matttbe@kernel.org> wrote:
>
>> I was surprised that you ended up with ~900 more lines, but I think you
>> missed the removal of misc/ssfilter* files.
>>
>> Cheers,
>> Matt
>
> Most of the ssfilter* files are build results from flex/bison
> so not actually in the repo.
Indeed, but in your patch, it looks like you are creating new
ss/ssfilter{.h,.y,_check.c} files instead of moving them from the "misc"
directory. Or maybe I missed something?
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads