diff options
| author | Matthieu Baerts (NGI0) <[email protected]> | 2024-08-19 19:45:29 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-08-21 00:40:13 +0000 |
| commit | ca6e55a703ca2894611bb5c5bca8bfd2290fd91e (patch) | |
| tree | 37cddde1ddbfe6a8c07907f80c109dafd0b3ae3f /net/mptcp/pm.c | |
| parent | mptcp: pm: check add_addr_accept_max before accepting new ADD_ADDR (diff) | |
| download | kernel-ca6e55a703ca2894611bb5c5bca8bfd2290fd91e.tar.gz kernel-ca6e55a703ca2894611bb5c5bca8bfd2290fd91e.zip | |
mptcp: pm: only in-kernel cannot have entries with ID 0
The ID 0 is specific per MPTCP connections. The per netns entries cannot
have this special ID 0 then.
But that's different for the userspace PM where the entries are per
connection, they can then use this special ID 0.
Fixes: f40be0db0b76 ("mptcp: unify pm get_flags_and_ifindex_by_id")
Cc: [email protected]
Acked-by: Geliang Tang <[email protected]>
Reviewed-by: Mat Martineau <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/mptcp/pm.c')
| -rw-r--r-- | net/mptcp/pm.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c index 925123e99889..3e6e0f5510bb 100644 --- a/net/mptcp/pm.c +++ b/net/mptcp/pm.c @@ -434,9 +434,6 @@ int mptcp_pm_get_flags_and_ifindex_by_id(struct mptcp_sock *msk, unsigned int id *flags = 0; *ifindex = 0; - if (!id) - return 0; - if (mptcp_pm_is_userspace(msk)) return mptcp_userspace_pm_get_flags_and_ifindex_by_id(msk, id, flags, ifindex); return mptcp_pm_nl_get_flags_and_ifindex_by_id(msk, id, flags, ifindex); |
