mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-13 16:26:43 +07:00
7720c01f3f
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>
18 lines
290 B
C
18 lines
290 B
C
/*
|
|
* mpls in net namespaces
|
|
*/
|
|
|
|
#ifndef __NETNS_MPLS_H__
|
|
#define __NETNS_MPLS_H__
|
|
|
|
struct mpls_route;
|
|
struct ctl_table_header;
|
|
|
|
struct netns_mpls {
|
|
size_t platform_labels;
|
|
struct mpls_route __rcu * __rcu *platform_label;
|
|
struct ctl_table_header *ctl;
|
|
};
|
|
|
|
#endif /* __NETNS_MPLS_H__ */
|