]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: Per-device MPLS state
authorRobert Shearman <rshearma@brocade.com>
Wed, 22 Apr 2015 10:14:37 +0000 (11:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 22 Apr 2015 18:24:54 +0000 (14:24 -0400)
commitdb9157a9359e8abd430f1222198e82d6713e2944
tree012bd8131aa759a62667ea02fe87fa3328b16d65
parent28ea9719dd25c1added0cb4306f8db6748270cb3
mpls: Per-device MPLS state

Add per-device MPLS state to supported interfaces. Use the presence of
this state in mpls_route_add to determine that this is a supported
interface.

Use the presence of mpls_dev to drop packets that arrived on an
unsupported interface - previously they were allowed through.

Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Robert Shearman <rshearma@brocade.com>
Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/mpls/af_mpls.c
net/mpls/internal.h