]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: MP_FAIL suboption sending
authorGeliang Tang <geliangtang@xiaomi.com>
Tue, 24 Aug 2021 23:26:15 +0000 (16:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 10:02:34 +0000 (11:02 +0100)
commit05669274f5344a9f58a5ec0dcb14da5a14bfc1df
treeb7288450cc5babe7d3d4e663505d42a4eb35c93b
parent691dee165ed1878ee4c224e9d6284c766af8d23c
mptcp: MP_FAIL suboption sending

This patch added the MP_FAIL suboption sending support.

Add a new flag named send_mp_fail in struct mptcp_subflow_context. If
this flag is set, send out MP_FAIL suboption.

Add a new member fail_seq in struct mptcp_out_options to save the data
sequence number to put into the MP_FAIL suboption.

An MP_FAIL option could be included in a RST or on the subflow-level
ACK.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
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>
include/net/mptcp.h
net/mptcp/options.c
net/mptcp/protocol.h