diff options
author | 2024-12-13 20:52:54 +0100 | |
---|---|---|
committer | 2024-12-15 14:28:34 -0800 | |
commit | 6a389c8ceeb75cf3c523ebf652a90958267c7b13 (patch) | |
tree | 913f889f00a64eff4e65f36314ac92c486c2c3e1 /net/core/dev_ioctl.c | |
parent | mptcp: add mptcp_for_each_userspace_pm_addr macro (diff) | |
download | wireguard-linux-6a389c8ceeb75cf3c523ebf652a90958267c7b13.tar.xz wireguard-linux-6a389c8ceeb75cf3c523ebf652a90958267c7b13.zip |
mptcp: add mptcp_userspace_pm_get_sock helper
Each userspace pm netlink function uses nla_get_u32() to get the msk
token value, then pass it to mptcp_token_get_sock() to get the msk.
Finally check whether userspace PM is selected on this msk. It makes
sense to wrap them into a helper, named mptcp_userspace_pm_get_sock(),
to do this.
This patch doesn't change the behaviour of the code, just refactoring.
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/20241213-net-next-mptcp-pm-misc-cleanup-v1-3-ddb6d00109a8@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/dev_ioctl.c')
0 files changed, 0 insertions, 0 deletions