Skip to content

Commit

Permalink
mpls: Refactor how the mpls module is built
Browse files Browse the repository at this point in the history
This refactoring is needed to allow more than just mpls gso
support to be built into the mpls moddule.

Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: "Eric W. Biederman" <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
ebiederm authored and davem330 committed Mar 4, 2015
1 parent ee23393 commit cec9166
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ obj-$(CONFIG_BATMAN_ADV) += batman-adv/
obj-$(CONFIG_NFC) += nfc/
obj-$(CONFIG_OPENVSWITCH) += openvswitch/
obj-$(CONFIG_VSOCKETS) += vmw_vsock/
obj-$(CONFIG_NET_MPLS_GSO) += mpls/
obj-$(CONFIG_MPLS) += mpls/
obj-$(CONFIG_HSR) += hsr/
ifneq ($(CONFIG_NET_SWITCHDEV),)
obj-y += switchdev/
Expand Down
18 changes: 17 additions & 1 deletion net/mpls/Kconfig
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
#
# MPLS configuration
#

menuconfig MPLS
tristate "MultiProtocol Label Switching"
default n
---help---
MultiProtocol Label Switching routes packets through logical
circuits. Originally conceved as a way of routing packets at
hardware speeds (before hardware was capable of routing ipv4 packets),
MPLS remains as simple way of making tunnels.

If you have not heard of MPLS you probably want to say N here.

if MPLS

config NET_MPLS_GSO
tristate "MPLS: GSO support"
bool "MPLS: GSO support"
help
This is helper module to allow segmentation of non-MPLS GSO packets
that have had MPLS stack entries pushed onto them and thus
become MPLS GSO packets.

endif # MPLS

0 comments on commit cec9166

Please sign in to comment.