]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ppp: add PPPOX symbol
authorQingfang Deng <qingfang.deng@linux.dev>
Tue, 28 Apr 2026 01:28:26 +0000 (09:28 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 29 Apr 2026 01:31:10 +0000 (18:31 -0700)
Add a dedicated CONFIG_PPPOX symbol to handle the PPPoX generic module,
avoiding redundant pppox.o definitions in the Makefile.

Signed-off-by: Qingfang Deng <qingfang.deng@linux.dev>
Link: https://patch.msgid.link/20260428012830.3069-1-qingfang.deng@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ppp/Kconfig
drivers/net/ppp/Makefile

index 753354b4e36cbaa259016f162afdc992ef939fc2..c592648ebd416bbf28a3b2e9e1bf7e530071417d 100644 (file)
@@ -110,8 +110,12 @@ config PPPOATM
          which can lead to bad results if the ATM peer loses state and
          changes its encapsulation unilaterally.
 
+config PPPOX
+       tristate
+
 config PPPOE
        tristate "PPP over Ethernet"
+       select PPPOX
        help
          Support for PPP over Ethernet.
 
@@ -157,6 +161,7 @@ config PPPOE_HASH_BITS
 config PPTP
        tristate "PPP over IPv4 (PPTP)"
        depends on NET_IPGRE_DEMUX
+       select PPPOX
        help
          Support for PPP over IPv4.(Point-to-Point Tunneling Protocol)
 
@@ -168,6 +173,7 @@ config PPTP
 config PPPOL2TP
        tristate "PPP over L2TP"
        depends on L2TP
+       select PPPOX
        help
          Support for PPP-over-L2TP socket family. L2TP is a protocol
          used by ISPs and enterprises to tunnel PPP traffic over UDP
index 16c457d6b3244cd579897074d91749421b449f42..a815e14971799b02dc54e4febde6a444c4543df3 100644 (file)
@@ -9,6 +9,6 @@ obj-$(CONFIG_PPP_BSDCOMP) += bsd_comp.o
 obj-$(CONFIG_PPP_DEFLATE) += ppp_deflate.o
 obj-$(CONFIG_PPP_MPPE) += ppp_mppe.o
 obj-$(CONFIG_PPP_SYNC_TTY) += ppp_synctty.o
-obj-$(CONFIG_PPPOE) += pppox.o pppoe.o
-obj-$(CONFIG_PPPOL2TP) += pppox.o
-obj-$(CONFIG_PPTP) += pppox.o pptp.o
+obj-$(CONFIG_PPPOX) += pppox.o
+obj-$(CONFIG_PPPOE) += pppoe.o
+obj-$(CONFIG_PPTP) += pptp.o