sctp: Basic support for network namespaces
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest9 patches 16 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | sctp: Make the port hash table use struct net in it's key.include/ include/ net/ | +16 | 1 reply | |
| 2/9 | sctp: Make the endpoint hashtable handle multiple network namespacesinclude/ include/ net/ +1 more | +18 | 1 reply | |
| 3/9 | sctp: Make the association hashtable handle multiple network namespacesinclude/ include/ net/ +3 more | +54 | 1 reply | |
| 4/9 | sctp: Make the address lists per network namespaceinclude/ include/ include/ +6 more | +131 | 1 reply | |
| 5/9 | sctp: Make the ctl_sock per network namespaceinclude/ include/ net/ +2 more | +60 | 1 reply | |
| 6/9 | sctp: Move the percpu sockets counter out of sctp_proc_initnet/ | +7 | 1 reply | |
| 7/9 | sctp: Make the proc files per network namespace.include/ include/ net/ +1 more | +85 | 1 reply | |
| 8/9 | sctp: Enable sctp in all network namespacesnet/ net/ | +11 | 1 reply | |
| 9/9 | sctp: Make the mib per network namespaceinclude/ include/ net/ +10 more | +158 | 1 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.
| Patch | Vlad Yasevich |
|---|---|
| Series | A-b A-b |
| 1/9 | A-b |
| 2/9 | A-b |
| 3/9 | A-b |
| 4/9 | A-b |
| 5/9 | A-b |
| 6/9 | A-b |
| 7/9 | A-b |
| 8/9 | A-b |
| 9/9 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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