Skip to contentSkip to conversation

selftests: net: veth: test own ndo-xmit after peer GRO toggle while down

PATCH Applied Tianyi Gao 3 participants 3 messages Oct 10 – Oct 16

Subsystems (4)
lore
Share & tools
lore

Tianyi Gao

author
#0 lore raw

PATCH 1/1 selftests: net: veth: test own ndo-xmit after peer GRO toggle while down

Test that a veth device advertises ndo-xmit when GRO is enabled on its peer while both are down and only the device is brought up.

Commit 7a6102aa6df0 ("veth: Update XDP feature set when bringing up device") made veth_open() set the flag in this case, and selftests were requested in its review [1].

The block now ends with GRO enabled while the peer is down, so the aggregation check that follows covers NAPI enabled by veth_open() again. Commit c017800af5c7 ("selftests: net: veth: test peer ndo-xmit after GRO toggle while down") had moved it to veth_set_features() [2].

---
The new check fails with veth_set_xdp_features(dev) removed from veth_open().

 tools/testing/selftests/net/veth.sh | 5 +++++
 1 file changed, 5 insertions(+)
tools/testing/selftests/net/veth.sh +5 -0
index 8b867e0675a7..60d0754928bf 100755
@@ -327,7 +327,12 @@ if [ -f "$YNL" ]; then
 	ip netns exec $NS_DST ethtool -K veth$DST gro off
 	ip -n $NS_DST link set dev veth$DST up
 	chk_xdp_feature "        - peer ndo-xmit cleared" $SRC 0 ndo-xmit
+	ip -n $NS_SRC link set dev veth$SRC down
+	ip -n $NS_DST link set dev veth$DST down
 	ip netns exec $NS_DST ethtool -K veth$DST gro on
+	ip -n $NS_SRC link set dev veth$SRC up
+	chk_xdp_feature "        - own ndo-xmit" $SRC 1 ndo-xmit
+	ip -n $NS_DST link set dev veth$DST up
 fi
 ip netns exec $NS_SRC ethtool -K veth$SRC tx-udp-segmentation off
 ip netns exec $NS_DST ethtool -K veth$DST rx-udp-gro-forwarding on

base-commit: d8674294aefef02266c4d47ad10131f1bffbe534

Signature · 1 line
2.55.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 12 lines · Tianyi Gao

Test that a veth device advertises ndo-xmit when GRO is enabled on its peer while both are down and only the device is brought up.

Commit 7a6102aa6df0 ("veth: Update XDP feature set when bringing up device") made veth_open() set the flag in this case, and selftests were requested in its review [1].

The block now ends with GRO enabled while the peer is down, so the aggregation check that follows covers NAPI enabled by veth_open() again. Commit c017800af5c7 ("selftests: net: veth: test peer ndo-xmit after GRO toggle while down") had moved it to veth_set_features() [2].

Quoted 4 lines

---

#2 lore raw
In reply to Tianyi Gao
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:

Hello:

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

Quoted 8 lines · On Sat, 10 Oct 2026 20:29:14 +0100 you wrote:

Test that a veth device advertises ndo-xmit when GRO is enabled on its peer while both are down and only the device is brought up.

Commit 7a6102aa6df0 ("veth: Update XDP feature set when bringing up device") made veth_open() set the flag in this case, and selftests were requested in its review [1].

[...]

Here is the summary with links:
- [net-next] selftests: net: veth: test own ndo-xmit after peer GRO toggle while down

    https://git.kernel.org/netdev/net-next/c/109b08f37639

You are awesome, thank you!

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