[PATCH] tapset/linux/networking.stp: Fix netdev.change_mtu for Linux v4.19 and v6.15

Seiichi Ikarashi (Fujitsu) s.ikarashi@fujitsu.com
Fri Oct 10 09:08:04 GMT 2025


Adapting two Linux commits:
 7a4c53b ("net: report invalid mtu value via netlink extack")
 7e4d784 ("net: hold netdev instance lock during rtnetlink operations")

---
tapset/linux/networking.stp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tapset/linux/networking.stp b/tapset/linux/networking.stp
index bf9cabfd5..e9506cf79 100644
--- a/tapset/linux/networking.stp
+++ b/tapset/linux/networking.stp
@@ -153,7 +153,9 @@ probe netdev.transmit
  * @new_mtu: The new MTU
  */
 probe netdev.change_mtu
-	= kernel.function("dev_set_mtu")
+	= kernel.function("netif_set_mtu_ext") !,
+	  kernel.function("dev_set_mtu_ext") !,
+	  kernel.function("dev_set_mtu")
 {
 	old_mtu = $dev->mtu
 	new_mtu = $new_mtu


More information about the Systemtap mailing list