]> www.infradead.org Git - users/hch/misc.git/commit
net: warn during dump if NAPI list is not sorted
authorJakub Kicinski <kuba@kernel.org>
Fri, 10 Jan 2025 00:45:04 +0000 (16:45 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Jan 2025 02:36:43 +0000 (18:36 -0800)
commitaf3525d41001431e3d170214170dfe7dd73435b9
tree61b6c87d5e860ea8e8a4152bdb0f668f1c0ebff6
parent460b52835e60605cbb31710e8d290ee27b3e412b
net: warn during dump if NAPI list is not sorted

Dump continuation depends on the NAPI list being sorted.
Broken netlink dump continuation may be rare and hard to debug
so add a warning if we notice the potential problem while walking
the list.

Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250110004505.3210140-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/netdev-genl.c