aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netns
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2015-03-03 20:11:20 -0500
committerDavid S. Miller <davem@davemloft.net>2015-03-04 00:26:06 -0500
commit7720c01f3f590116882e251f13c7e1d5602f8643 (patch)
treeb27e3e1b2443de3b68e4dfcf1a12e7d4e5b11198 /include/net/netns
parent0189197f441602acdca3f97750d392a895b778fd (diff)
mpls: Add a sysctl to control the size of the mpls label table
This sysctl gives two benefits. By defaulting the table size to 0 mpls even when compiled in and enabled defaults to not forwarding any packets. This prevents unpleasant surprises for users. The other benefit is that as mpls labels are allocated locally a dense table a small dense label table may be used which saves memory and is extremely simple and efficient to implement. This sysctl allows userspace to choose the restrictions on the label table size userspace applications need to cope with. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netns')
-rw-r--r--include/net/netns/mpls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netns/mpls.h b/include/net/netns/mpls.h
index f90aaf8d4f89..d29203651c01 100644
--- a/include/net/netns/mpls.h
+++ b/include/net/netns/mpls.h
@@ -6,10 +6,12 @@
6#define __NETNS_MPLS_H__ 6#define __NETNS_MPLS_H__
7 7
8struct mpls_route; 8struct mpls_route;
9struct ctl_table_header;
9 10
10struct netns_mpls { 11struct netns_mpls {
11 size_t platform_labels; 12 size_t platform_labels;
12 struct mpls_route __rcu * __rcu *platform_label; 13 struct mpls_route __rcu * __rcu *platform_label;
14 struct ctl_table_header *ctl;
13}; 15};
14 16
15#endif /* __NETNS_MPLS_H__ */ 17#endif /* __NETNS_MPLS_H__ */