Make nicer CONFIG_NET_NS=n case code
Status from this message: Applied.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | Make the init/exit hooks checks outside the loopnet/ | +11 | 1 reply | |
| 2/5 | Relax the reference counting of init_net_nsinclude/ | +25 | 1 reply | |
| 3/5 | Hide the dead code in the net_namespace.cnet/ | +68 | 1 reply | |
| 4/5 | Mark the setup_net as __net_initnet/ | +1 | 1 reply | |
| 5/5 | Hide the net_ns kmem cachenet/ | +4 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/5] Make nicer CONFIG_NET_NS=n case code
Currently we have the NET_NS config option, but the only change it makes is just return ERR_PTR(-EINVAL) inside the cloning call thus introducing a bunch of a dead code and making the reference counting unneeded. This is not very good.
So clean the net_namespace.c to fix this.
I have sent a set of patches to Andrew to make similar thing for other namespaces, which introduces the NAMESPACES option to turn all the namespaces off at once (to make embedded people suffer less). So after that stuff is in, there will be some more patches to tie all this together.
What is to be done after this set is to make the register_pernet_xxx stuff smaller. Currently this code weights approximately 500 bytes, so it worths reducing it, but I haven't found a good solution yet.