summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2016-12-02 02:12:58 +0100
committerDavid S. Miller <davem@davemloft.net>2016-12-03 21:59:58 +0100
commit9bfc7b9969dbb800460e2577f1dea59336269ce4 (patch)
tree2fd83542f48b3aeb62c29035f08fa8019090e8df /include/net
parentnetns: publish net_generic correctly (diff)
downloadlinux-9bfc7b9969dbb800460e2577f1dea59336269ce4.tar.xz
linux-9bfc7b9969dbb800460e2577f1dea59336269ce4.zip
netns: add dummy struct inside "struct net_generic"
This is precursor to fixing "[id - 1]" bloat inside net_generic(). Name "s" is chosen to complement name "u" often used for dummy unions. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/netns/generic.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/net/netns/generic.h b/include/net/netns/generic.h
index d315786bcfd7..65ccce69b040 100644
--- a/include/net/netns/generic.h
+++ b/include/net/netns/generic.h
@@ -25,8 +25,10 @@
*/
struct net_generic {
- unsigned int len;
- struct rcu_head rcu;
+ struct {
+ unsigned int len;
+ struct rcu_head rcu;
+ } s;
void *ptr[0];
};