Skip to content

Commit cec9166

Browse files
ebiedermdavem330
authored andcommitted
mpls: Refactor how the mpls module is built
This refactoring is needed to allow more than just mpls gso support to be built into the mpls moddule. Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ee23393 commit cec9166

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

‎net/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ obj-$(CONFIG_BATMAN_ADV) += batman-adv/
6969
obj-$(CONFIG_NFC) += nfc/
7070
obj-$(CONFIG_OPENVSWITCH) += openvswitch/
7171
obj-$(CONFIG_VSOCKETS) += vmw_vsock/
72-
obj-$(CONFIG_NET_MPLS_GSO) += mpls/
72+
obj-$(CONFIG_MPLS) += mpls/
7373
obj-$(CONFIG_HSR) += hsr/
7474
ifneq ($(CONFIG_NET_SWITCHDEV),)
7575
obj-y += switchdev/

‎net/mpls/Kconfig‎

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
#
22
# MPLS configuration
33
#
4+
5+
menuconfig MPLS
6+
tristate "MultiProtocol Label Switching"
7+
default n
8+
---help---
9+
MultiProtocol Label Switching routes packets through logical
10+
circuits. Originally conceved as a way of routing packets at
11+
hardware speeds (before hardware was capable of routing ipv4 packets),
12+
MPLS remains as simple way of making tunnels.
13+
14+
If you have not heard of MPLS you probably want to say N here.
15+
16+
if MPLS
17+
418
config NET_MPLS_GSO
5-
tristate "MPLS: GSO support"
19+
bool "MPLS: GSO support"
620
help
721
This is helper module to allow segmentation of non-MPLS GSO packets
822
that have had MPLS stack entries pushed onto them and thus
923
become MPLS GSO packets.
24+
25+
endif # MPLS

0 commit comments

Comments
 (0)