Skip to content

sctp: Basic support for network namespaces

Eric W. Biederman linux-sctp lkml netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9sctp: Make the port hash table use struct net in it's key.include/net/sctp/sctp.h include/net/sctp/structs.h net/sctp/socket.c+16 -111 reply
2/9sctp: Make the endpoint hashtable handle multiple network namespacesinclude/net/sctp/sctp.h include/net/sctp/structs.h net/sctp/endpointola.c +1 more+18 -111 reply
3/9sctp: Make the association hashtable handle multiple network namespacesinclude/net/sctp/sctp.h include/net/sctp/structs.h net/sctp/associola.c +3 more+54 -321 reply
4/9sctp: Make the address lists per network namespaceinclude/net/net_namespace.h include/net/netns/sctp.h include/net/sctp/sctp.h +6 more+131 -1021 reply
5/9sctp: Make the ctl_sock per network namespaceinclude/net/netns/sctp.h include/net/sctp/sctp.h net/sctp/input.c +2 more+60 -451 reply
6/9sctp: Move the percpu sockets counter out of sctp_proc_initnet/sctp/protocol.c+7 -61 reply
7/9sctp: Make the proc files per network namespace.include/net/netns/sctp.h include/net/sctp/sctp.h net/sctp/proc.c +1 more+85 -721 reply
8/9sctp: Enable sctp in all network namespacesnet/sctp/ipv6.c net/sctp/protocol.c+11 -91 reply
9/9sctp: Make the mib per network namespaceinclude/net/netns/sctp.h include/net/sctp/sctp.h net/sctp/associola.c +10 more+158 -1191 reply

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchVlad Yasevich
SeriesA-b A-b
1/9A-b
2/9A-b
3/9A-b
4/9A-b
5/9A-b
6/9A-b
7/9A-b
8/9A-b
9/9A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH net-next 0/9] sctp: Basic support for network namespaces

The other day I wanted to play around with sctp and did a basic pass to make sctp per network namespace, so that I could play more conviniently. Apparently this is an idea who's time has come because Jan Ariyasu also made a similar set of changes.

I have played around some with these changes and have confirmed that sctp_test from lksctp-tools works without problems.

Compared to Jan's changes I have per network namespace association and endpoint hash table lookups, my patch has per network namespace mib statistics, my changes don't contiain per network namespace tunables and my patchset only touches about half as many lines as Jan's change.

So for both correctness and simplicity reasons it looks like the practical way to handle this is to merge my changes and get Jan rebase his tunable changes on top.

 include/net/net_namespace.h |    4 +
 include/net/netns/sctp.h    |   37 +++++
 include/net/sctp/sctp.h     |   44 +++----
 include/net/sctp/structs.h  |   28 +----
 net/sctp/associola.c        |    9 +-
 net/sctp/bind_addr.c        |   14 +-
 net/sctp/chunk.c            |    2 +-
 net/sctp/endpointola.c      |   12 +-
 net/sctp/input.c            |  109 +++++++++------
 net/sctp/ipv6.c             |   36 +++---
 net/sctp/output.c           |    2 +-
 net/sctp/outqueue.c         |   18 ++-
 net/sctp/proc.c             |   58 +++++---
 net/sctp/protocol.c         |  305 ++++++++++++++++++++++---------------------
 net/sctp/sm_statefuns.c     |  208 ++++++++++++++++++-----------
 net/sctp/socket.c           |   29 +++--
 net/sctp/ulpqueue.c         |   18 ++-
 17 files changed, 533 insertions(+), 400 deletions(-)

Eric W. Biederman (9):
sctp: Make the port hash table use struct net in it's key.
sctp: Make the endpoint hashtable handle multiple network namespaces
sctp: Make the association hashtable handle multiple network namespaces
sctp: Make the address lists per network namespace
sctp: Make the ctl_sock per network namespace
sctp: Move the percpu sockets counter out of sctp_proc_init
sctp: Make the proc files per network namespace.
sctp: Enable sctp in all network namespaces
sctp: Make the mib per network namespace