diff options
| author | Geliang Tang <[email protected]> | 2024-10-21 15:14:05 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-10-28 22:55:45 +0000 |
| commit | 5add80bfdc46f9ad6857c80e3af109177e59a280 (patch) | |
| tree | 9ea918569af9c314be17c6742d3b48a9b7458e70 /net/mptcp/pm.c | |
| parent | mptcp: annotate data-races around subflow->fully_established (diff) | |
| download | kernel-5add80bfdc46f9ad6857c80e3af109177e59a280.tar.gz kernel-5add80bfdc46f9ad6857c80e3af109177e59a280.zip | |
mptcp: implement mptcp_pm_connection_closed
The MPTCP path manager event handler mptcp_pm_connection_closed
interface has been added in the commit 1b1c7a0ef7f3 ("mptcp: Add path
manager interface") but it was an empty function from then on.
With such name, it sounds good to invoke mptcp_event with the
MPTCP_EVENT_CLOSED event type from it. It also removes a bit of
duplicated code.
Signed-off-by: Geliang Tang <[email protected]>
Reviewed-by: Matthieu Baerts (NGI0) <[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, 3 insertions, 0 deletions
diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c index 620264c75dc2..16c336c51940 100644 --- a/net/mptcp/pm.c +++ b/net/mptcp/pm.c @@ -154,6 +154,9 @@ void mptcp_pm_fully_established(struct mptcp_sock *msk, const struct sock *ssk) void mptcp_pm_connection_closed(struct mptcp_sock *msk) { pr_debug("msk=%p\n", msk); + + if (msk->token) + mptcp_event(MPTCP_EVENT_CLOSED, msk, NULL, GFP_KERNEL); } void mptcp_pm_subflow_established(struct mptcp_sock *msk) |
