Skip to contentSkip to conversation

selftests: net: add tests for PPPoL2TP

PATCH Applied Qingfang Deng 3 participants 6 messages May 14 – May 22

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 selftests: net: add tests for PPPoL2TP

Add ping, iperf3, and recursion tests for PPPoL2TP.

Assisted-by Gemini:gemini-3-flash

---
v2:
- use named veth pair instead of netkit
- reset RET prior to the recursion test
v1: https://lore.kernel.org/netdev/[email protected]

 tools/testing/selftests/net/ppp/Makefile    |  1 +
 tools/testing/selftests/net/ppp/config      |  2 +
 tools/testing/selftests/net/ppp/pppol2tp.sh | 95 +++++++++++++++++++++
 3 files changed, 98 insertions(+)
 create mode 100755 tools/testing/selftests/net/ppp/pppol2tp.sh
tools/testing/selftests/net/ppp/Makefile +1 -0
index b39b0abadde6..6036fa134351 100644
@@ -5,6 +5,7 @@ top_srcdir = ../../../../..
 TEST_PROGS := \
 	ppp_async.sh \
 	pppoe.sh \
+	pppol2tp.sh \
 # end of TEST_PROGS
 
 TEST_FILES := \
tools/testing/selftests/net/ppp/config +2 -0
index b45d25c5b970..843545df8f03 100644
@@ -1,4 +1,5 @@
 CONFIG_IPV6=y
+CONFIG_L2TP=m
 CONFIG_PACKET=y
 CONFIG_PPP=m
 CONFIG_PPP_ASYNC=m
@@ -6,4 +7,5 @@ CONFIG_PPP_BSDCOMP=m
 CONFIG_PPP_DEFLATE=m
 CONFIG_PPPOE=m
 CONFIG_PPPOE_HASH_BITS_4=y
+CONFIG_PPPOL2TP=m
 CONFIG_VETH=y
tools/testing/selftests/net/ppp/pppol2tp.sh new file +95 -0

95 lines not on this page · raw message

Signature · 1 line
2.43.0
#1 lore raw
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 11 lines · On Thu, 14 May 2026 09:57:32 +0800 you wrote:

Add ping, iperf3, and recursion tests for PPPoL2TP.

Assisted-by Gemini:gemini-3-flash

---
v2:
- use named veth pair instead of netkit
- reset RET prior to the recursion test
v1: https://lore.kernel.org/netdev/[email protected]

[...]

Here is the summary with links:
- [net-next,v2] selftests: net: add tests for PPPoL2TP

    https://git.kernel.org/netdev/net-next/c/7af2a94f4dcf

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
#3 lore raw

Hi,

Quoted 6 lines · Matthieu Baerts

Hi Qingfang,

Quoted 1 line · Qingfang Deng

Add ping, iperf3, and recursion tests for PPPoL2TP.

Thank you for the new test!

Quoted 8 lines

I recently modified NIPA to be able to execute this test by adding xl2tpd 1.3.20, but it looks like this test is flaky:

https://netdev.bots.linux.dev/contest.html?skip=0&test=pppol2tp-sh

The results are now ignored.

Do you mind fixing that, please?

Looks like pppd exited unexpectedly, but I could not locally reproduce this issue.

You can start a socat instance to listen on syslog (as done in pppoe.sh test) to see what's going on.

Regards,

Qingfang

#4 lore raw

Hi Qingfang,

Quoted 16 lines · Qingfang Deng

Hi,

Quoted 13 lines · Matthieu Baerts

Hi Qingfang,

Quoted 1 line · Qingfang Deng

Add ping, iperf3, and recursion tests for PPPoL2TP.

Thank you for the new test!

I recently modified NIPA to be able to execute this test by adding xl2tpd 1.3.20, but it looks like this test is flaky:

   https://netdev.bots.linux.dev/contest.html?skip=0&test=pppol2tp-sh

The results are now ignored.

Quoted 8 lines
Quoted 1 line

Do you mind fixing that, please?

Looks like pppd exited unexpectedly, but I could not locally reproduce this issue.

You can start a socat instance to listen on syslog (as done in pppoe.sh test) to see what's going on.

If it is already done in another test, and if this is not creating more troubles, it might be more interesting if this debug mode is always enabled. I would then recommend sending a patch doing that, than applying temp modifications only in NIPA, with a risk of causing other troubles. WDYT?

Cheers,
Matt

#5 lore raw
Quoted 6 lines · Matthieu Baerts

Hi Qingfang,

Quoted 3 lines · Qingfang Deng

Looks like pppd exited unexpectedly, but I could not locally reproduce this issue.

Quoted 7 lines
Quoted 2 lines

You can start a socat instance to listen on syslog (as done in pppoe.sh test) to see what's going on.

If it is already done in another test, and if this is not creating more troubles, it might be more interesting if this debug mode is always enabled. I would then recommend sending a patch doing that, than applying temp modifications only in NIPA, with a risk of causing other troubles. WDYT?

Sure thing.