Message ID | 945fdaa82c817feb705da45d0b1597c7d8a5533b.1631188109.git.geliangtang@xiaomi.com (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
Series | The infinite mapping support | expand |
On Thu, 2021-09-09 at 19:51 +0800, Geliang Tang wrote: > From: Geliang Tang <geliangtang@xiaomi.com> > > This patch added the infinite mapping receiving logic. When the infinite > mapping is received. invoke __mptcp_do_infinite to set the > MPTCP_INFINITE_DONE flag and return MAPPING_INFINITE. > > Signed-off-by: Geliang Tang <geliangtang@xiaomi.com> > --- > net/mptcp/subflow.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c > index ad8efe56eab6..bf535cc46c5c 100644 > --- a/net/mptcp/subflow.c > +++ b/net/mptcp/subflow.c > @@ -972,7 +972,9 @@ static enum mapping_status get_mapping_status(struct sock *ssk, > data_len = mpext->data_len; > if (data_len == 0) { > MPTCP_INC_STATS(sock_net(ssk), MPTCP_MIB_INFINITEMAPRX); > - return MAPPING_INVALID; > + pr_infinite(msk); > + __mptcp_do_infinite(msk); > + return MAPPING_INFINITE; > } > > if (mpext->data_fin == 1) { As for patch 3/9, I think we could simply return MAPPING_DUMMY. /P
diff --git a/net/mptcp/subflow.c b/net/mptcp/subflow.c index ad8efe56eab6..bf535cc46c5c 100644 --- a/net/mptcp/subflow.c +++ b/net/mptcp/subflow.c @@ -972,7 +972,9 @@ static enum mapping_status get_mapping_status(struct sock *ssk, data_len = mpext->data_len; if (data_len == 0) { MPTCP_INC_STATS(sock_net(ssk), MPTCP_MIB_INFINITEMAPRX); - return MAPPING_INVALID; + pr_infinite(msk); + __mptcp_do_infinite(msk); + return MAPPING_INFINITE; } if (mpext->data_fin == 1) {