mptcp: drop lookup_by_id in lookup_addr
authorGeliang Tang <tanggeliang@kylinos.cn>
Tue, 5 Mar 2024 11:04:33 +0000 (12:04 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 7 Mar 2024 04:24:10 +0000 (20:24 -0800)
commitaf250c27ea1c404e210fc3a308b20f772df584d6
treef61af2a8eb61ccb1772fbe942c6ba284b618298a
parenta4d68b160240815d7ca2f935ba690df33a525dd9
mptcp: drop lookup_by_id in lookup_addr

When the lookup_by_id parameter of __lookup_addr() is true, it's the same
as __lookup_addr_by_id(), it can be replaced by __lookup_addr_by_id()
directly. So drop this parameter, let __lookup_addr() only looks up address
on the local address list by comparing addresses in it, not address ids.

Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Link: https://lore.kernel.org/r/20240305-upstream-net-next-20240304-mptcp-misc-cleanup-v1-4-c436ba5e569b@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_netlink.c