]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
RDMA/core: Squash a single user static function
authorParav Pandit <parav@nvidia.com>
Tue, 16 Sep 2025 11:11:00 +0000 (14:11 +0300)
committerLeon Romanovsky <leon@kernel.org>
Thu, 18 Sep 2025 09:15:39 +0000 (05:15 -0400)
commitfa29d1e8877bcfb9813efc7d0138e01ca07f1863
tree49466328e75656a592f0ff9b550a7c8f24e29a5d
parent060842fed53f77a73824c9147f51dc6746c1267a
RDMA/core: Squash a single user static function

To reduce dependencies in IFF_LOOPBACK in route and neighbour resolution
steps, squash the static function to its single caller and simplify the
code.
Until now, network field was set even when neighbour resolution failed.
With this change, dev_addr output fields are valid only when resolution
is successful.

Signed-off-by: Parav Pandit <parav@nvidia.com>
Reviewed-by: Vlad Dumitrescu <vdumitrescu@nvidia.com>
Signed-off-by: Edward Srouji <edwards@nvidia.com>
Link: https://patch.msgid.link/20250916111103.84069-2-edwards@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/core/addr.c