diff options
author | Geliang Tang <geliangtang@xiaomi.com> | 2021-08-25 01:26:16 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-25 12:02:34 +0200 |
commit | 5580d41b758af12134d5c6b4c385fc25d0c6bfb0 (patch) | |
tree | 65118b49118bf677e80f987cf0d03ca3e9fab994 /net/mptcp/pm.c | |
parent | mptcp: MP_FAIL suboption sending (diff) | |
download | linux-5580d41b758af12134d5c6b4c385fc25d0c6bfb0.tar.xz linux-5580d41b758af12134d5c6b4c385fc25d0c6bfb0.zip |
mptcp: MP_FAIL suboption receiving
This patch added handling for receiving MP_FAIL suboption.
Add a new members mp_fail and fail_seq in struct mptcp_options_received.
When MP_FAIL suboption is received, set mp_fail to 1 and save the sequence
number to fail_seq.
Then invoke mptcp_pm_mp_fail_received to deal with the MP_FAIL suboption.
Signed-off-by: Geliang Tang <geliangtang@xiaomi.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mptcp/pm.c')
-rw-r--r-- | net/mptcp/pm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/net/mptcp/pm.c b/net/mptcp/pm.c index da0c4c925350..6ab386ff3294 100644 --- a/net/mptcp/pm.c +++ b/net/mptcp/pm.c @@ -249,6 +249,11 @@ void mptcp_pm_mp_prio_received(struct sock *sk, u8 bkup) mptcp_event(MPTCP_EVENT_SUB_PRIORITY, mptcp_sk(subflow->conn), sk, GFP_ATOMIC); } +void mptcp_pm_mp_fail_received(struct sock *sk, u64 fail_seq) +{ + pr_debug("fail_seq=%llu", fail_seq); +} + /* path manager helpers */ bool mptcp_pm_add_addr_signal(struct mptcp_sock *msk, struct sk_buff *skb, |