xref: /OK3568_Linux_fs/kernel/Documentation/networking/mpls-sysctl.rst (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun.. SPDX-License-Identifier: GPL-2.0
2*4882a593Smuzhiyun
3*4882a593Smuzhiyun====================
4*4882a593SmuzhiyunMPLS Sysfs variables
5*4882a593Smuzhiyun====================
6*4882a593Smuzhiyun
7*4882a593Smuzhiyun/proc/sys/net/mpls/* Variables:
8*4882a593Smuzhiyun===============================
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunplatform_labels - INTEGER
11*4882a593Smuzhiyun	Number of entries in the platform label table.  It is not
12*4882a593Smuzhiyun	possible to configure forwarding for label values equal to or
13*4882a593Smuzhiyun	greater than the number of platform labels.
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun	A dense utilization of the entries in the platform label table
16*4882a593Smuzhiyun	is possible and expected as the platform labels are locally
17*4882a593Smuzhiyun	allocated.
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun	If the number of platform label table entries is set to 0 no
20*4882a593Smuzhiyun	label will be recognized by the kernel and mpls forwarding
21*4882a593Smuzhiyun	will be disabled.
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun	Reducing this value will remove all label routing entries that
24*4882a593Smuzhiyun	no longer fit in the table.
25*4882a593Smuzhiyun
26*4882a593Smuzhiyun	Possible values: 0 - 1048575
27*4882a593Smuzhiyun
28*4882a593Smuzhiyun	Default: 0
29*4882a593Smuzhiyun
30*4882a593Smuzhiyunip_ttl_propagate - BOOL
31*4882a593Smuzhiyun	Control whether TTL is propagated from the IPv4/IPv6 header to
32*4882a593Smuzhiyun	the MPLS header on imposing labels and propagated from the
33*4882a593Smuzhiyun	MPLS header to the IPv4/IPv6 header on popping the last label.
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun	If disabled, the MPLS transport network will appear as a
36*4882a593Smuzhiyun	single hop to transit traffic.
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun	* 0 - disabled / RFC 3443 [Short] Pipe Model
39*4882a593Smuzhiyun	* 1 - enabled / RFC 3443 Uniform Model (default)
40*4882a593Smuzhiyun
41*4882a593Smuzhiyundefault_ttl - INTEGER
42*4882a593Smuzhiyun	Default TTL value to use for MPLS packets where it cannot be
43*4882a593Smuzhiyun	propagated from an IP header, either because one isn't present
44*4882a593Smuzhiyun	or ip_ttl_propagate has been disabled.
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun	Possible values: 1 - 255
47*4882a593Smuzhiyun
48*4882a593Smuzhiyun	Default: 255
49*4882a593Smuzhiyun
50*4882a593Smuzhiyunconf/<interface>/input - BOOL
51*4882a593Smuzhiyun	Control whether packets can be input on this interface.
52*4882a593Smuzhiyun
53*4882a593Smuzhiyun	If disabled, packets will be discarded without further
54*4882a593Smuzhiyun	processing.
55*4882a593Smuzhiyun
56*4882a593Smuzhiyun	* 0 - disabled (default)
57*4882a593Smuzhiyun	* not 0 - enabled
58