acrn-kernel/net/mptcp
Geliang Tang 70a4a26572 mptcp: add needs_id for netlink appending addr
commit 584f3894262634596532cf43a5e782e34a0ce374 upstream.

Just the same as userspace PM, a new parameter needs_id is added for
in-kernel PM mptcp_pm_nl_append_new_local_addr() too.

Add a new helper mptcp_pm_has_addr_attr_id() to check whether an address
ID is set from PM or not.

In mptcp_pm_nl_get_local_id(), needs_id is always true, but in
mptcp_pm_nl_add_addr_doit(), pass mptcp_pm_has_addr_attr_id() to
needs_it.

Fixes: efd5a4c04e ("mptcp: add the address ID assignment bitmap")
Cc: stable@vger.kernel.org
Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
Reviewed-by: Mat Martineau <martineau@kernel.org>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-03-01 13:26:39 +01:00
..
Kconfig
Makefile
bpf.c
crypto.c
crypto_test.c
ctrl.c
diag.c mptcp: fix lockless access in subflow ULP diag 2024-03-01 13:26:34 +01:00
mib.c
mib.h
mptcp_diag.c tcp: Access &tcp_hashinfo via net. 2022-09-20 10:21:49 -07:00
options.c mptcp: mptcp_parse_option() fix for MPTCPOPT_MP_JOIN 2024-01-25 15:27:49 -08:00
pm.c mptcp: update userspace pm infos 2023-06-14 11:15:27 +02:00
pm_netlink.c mptcp: add needs_id for netlink appending addr 2024-03-01 13:26:39 +01:00
pm_userspace.c mptcp: userspace pm send RM_ADDR for ID 0 2024-03-01 13:26:39 +01:00
protocol.c mptcp: drop the push_pending field 2024-02-23 09:12:36 +01:00
protocol.h mptcp: make userspace_pm_append_new_local_addr static 2024-03-01 13:26:34 +01:00
sockopt.c mptcp: fix setsockopt(IP_TOS) subflow locking 2023-11-28 17:07:20 +00:00
subflow.c mptcp: relax check on MPC passive fallback 2024-01-25 15:27:50 -08:00
syncookies.c
token.c
token_test.c