diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2015-03-03 20:10:23 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-03-04 00:26:06 -0500 |
commit | cec9166ca4e586de389b0f3c43a8103e728d92ec (patch) | |
tree | 54b647d8dfad5675f4137f2eedab1889b7d12993 | |
parent | ee23393b40062362feb220b32629624c1d3c402c (diff) |
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>
-rw-r--r-- | net/Makefile | 2 | ||||
-rw-r--r-- | net/mpls/Kconfig | 18 |
2 files changed, 18 insertions, 2 deletions
diff --git a/net/Makefile b/net/Makefile index 38704bdf941a..3995613e5510 100644 --- a/net/Makefile +++ b/net/Makefile | |||
@@ -69,7 +69,7 @@ obj-$(CONFIG_BATMAN_ADV) += batman-adv/ | |||
69 | obj-$(CONFIG_NFC) += nfc/ | 69 | obj-$(CONFIG_NFC) += nfc/ |
70 | obj-$(CONFIG_OPENVSWITCH) += openvswitch/ | 70 | obj-$(CONFIG_OPENVSWITCH) += openvswitch/ |
71 | obj-$(CONFIG_VSOCKETS) += vmw_vsock/ | 71 | obj-$(CONFIG_VSOCKETS) += vmw_vsock/ |
72 | obj-$(CONFIG_NET_MPLS_GSO) += mpls/ | 72 | obj-$(CONFIG_MPLS) += mpls/ |
73 | obj-$(CONFIG_HSR) += hsr/ | 73 | obj-$(CONFIG_HSR) += hsr/ |
74 | ifneq ($(CONFIG_NET_SWITCHDEV),) | 74 | ifneq ($(CONFIG_NET_SWITCHDEV),) |
75 | obj-y += switchdev/ | 75 | obj-y += switchdev/ |
diff --git a/net/mpls/Kconfig b/net/mpls/Kconfig index 37421db88965..a77fbcdd04ee 100644 --- a/net/mpls/Kconfig +++ b/net/mpls/Kconfig | |||
@@ -1,9 +1,25 @@ | |||
1 | # | 1 | # |
2 | # MPLS configuration | 2 | # MPLS configuration |
3 | # | 3 | # |
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 | |||
4 | config NET_MPLS_GSO | 18 | config NET_MPLS_GSO |
5 | tristate "MPLS: GSO support" | 19 | bool "MPLS: GSO support" |
6 | help | 20 | help |
7 | This is helper module to allow segmentation of non-MPLS GSO packets | 21 | This is helper module to allow segmentation of non-MPLS GSO packets |
8 | that have had MPLS stack entries pushed onto them and thus | 22 | that have had MPLS stack entries pushed onto them and thus |
9 | become MPLS GSO packets. | 23 | become MPLS GSO packets. |
24 | |||
25 | endif # MPLS | ||