mptcp: infinite mapping receiving
authorGeliang Tang <geliang.tang@suse.com>
Fri, 22 Apr 2022 21:55:40 +0000 (14:55 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Apr 2022 10:51:05 +0000 (11:51 +0100)
commitf8d4bcacff3b77f8778ae3ab97e0d175e861babf
treeb88e20c77f32d0cc83378498dd31c1997d9ed17f
parent1e39e5a32ad7fdd82d6e071aa14ecd511eedc1f7
mptcp: infinite mapping receiving

This patch adds the infinite mapping receiving logic. When the infinite
mapping is received, set the map_data_len of the subflow to 0.

In subflow_check_data_avail(), only reset the subflow when the map_data_len
of the subflow is non-zero.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliang.tang@suse.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/subflow.c