Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

udp_tunnel: use netdev_warn() instead of netdev_WARN()

netdev_WARN() uses WARN/WARN_ON to print a backtrace along with
file and line information. In this case, udp_tunnel_nic_register()
returning an error is just a failed operation, not a kernel bug.

udp_tunnel_nic_register() can fail due to a memory allocation
failure (kzalloc() or udp_tunnel_nic_alloc()).
This is a normal runtime error and not a kernel bug.

Replace netdev_WARN() with netdev_warn() accordingly.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250910195031.3784748-1-alok.a.tiwari@oracle.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Alok Tiwari and committed by
Jakub Kicinski
dc2f650f 999337af

+1 -1
+1 -1
net/ipv4/udp_tunnel_nic.c
··· 930 930 931 931 err = udp_tunnel_nic_register(dev); 932 932 if (err) 933 - netdev_WARN(dev, "failed to register for UDP tunnel offloads: %d", err); 933 + netdev_warn(dev, "failed to register for UDP tunnel offloads: %d", err); 934 934 return notifier_from_errno(err); 935 935 } 936 936 /* All other events will need the udp_tunnel_nic state */