]> 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)
commit3015107ceac2d7993dada58e6e88503f3a501406
treeb7288450cc5babe7d3d4e663505d42a4eb35c93b
parent7e86d0a119b91215b142e6fc5db713b967c1e38f
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