]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mptcp: update local address flags when setting it
authorGeliang Tang <tanggeliang@kylinos.cn>
Tue, 12 Nov 2024 19:18:33 +0000 (20:18 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 14 Nov 2024 02:51:02 +0000 (18:51 -0800)
commite0266319413d5d687ba7b6df7ca99e4b9724a4f2
treebae5458831e73b356c080dd6c0f244bbf93d12f4
parent73af53d82076bbe184d9ece9e14b0dc8599e6055
mptcp: update local address flags when setting it

Just like in-kernel pm, when userspace pm does set_flags, it needs to send
out MP_PRIO signal, and also modify the flags of the corresponding address
entry in the local address list. This patch implements the missing logic.

Traverse all address entries on userspace_pm_local_addr_list to find the
local address entry, if bkup is true, set the flags of this entry with
FLAG_BACKUP, otherwise, clear FLAG_BACKUP.

Fixes: 892f396c8e68 ("mptcp: netlink: issue MP_PRIO signals from userspace PMs")
Cc: stable@vger.kernel.org
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://patch.msgid.link/20241112-net-mptcp-misc-6-12-pm-v1-1-b835580cefa8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mptcp/pm_userspace.c