]> git.ipfire.org Git - thirdparty/linux.git/commit
devlink: avoid extra iterations when found devlink is not registered
authorJiri Pirko <jiri@nvidia.com>
Thu, 12 Mar 2026 10:03:57 +0000 (11:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 14 Mar 2026 20:08:47 +0000 (13:08 -0700)
commite2e3666fd3609bfc03c42bd8544be8cbd080d24d
treed94de8d9bd27b4b04d5554738d2ec9b8ae9eebfd
parent0f5531879afbf904f19a15b39f687a9ec47a82cc
devlink: avoid extra iterations when found devlink is not registered

Since the one found is not registered, very unlikely another one with
the same bus_name/dev_name is going to be found. Stop right away and
prepare common "found" path for the follow-up patch.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://patch.msgid.link/20260312100407.551173-4-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/netlink.c