]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: Add a sysctl to control the size of the mpls label table
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 4 Mar 2015 01:11:20 +0000 (19:11 -0600)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2015 05:26:06 +0000 (00:26 -0500)
commite420ba7452195d661e482efa8ed1ce72c8efaa18
treeb27e3e1b2443de3b68e4dfcf1a12e7d4e5b11198
parent2bc22cf72880379798b2313a957778a8269eeb63
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>
Documentation/networking/mpls-sysctl.txt [new file with mode: 0644]
include/net/netns/mpls.h
net/mpls/af_mpls.c