diff options
author | Geliang Tang <geliangtang@gmail.com> | 2021-06-18 01:46:09 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-06-18 20:40:11 +0200 |
commit | 06fe1719aa501e3b574b1b2b3a7ad2ddac5fb9cb (patch) | |
tree | b43f7d441f4d1cac1c2209f57f967655d3d04eb7 /net/mptcp/protocol.h | |
parent | mptcp: generate the data checksum (diff) | |
download | linux-06fe1719aa501e3b574b1b2b3a7ad2ddac5fb9cb.tar.xz linux-06fe1719aa501e3b574b1b2b3a7ad2ddac5fb9cb.zip |
mptcp: add csum_reqd in mptcp_out_options
This patch added a new member csum_reqd in struct mptcp_out_options and
struct mptcp_subflow_request_sock. Initialized it with the helper
function mptcp_is_checksum_enabled().
In mptcp_write_options, if this field is enabled, send out the MP_CAPABLE
suboption with the MPTCP_CAP_CHECKSUM_REQD flag.
Acked-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Geliang Tang <geliangtang@gmail.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/protocol.h')
-rw-r--r-- | net/mptcp/protocol.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mptcp/protocol.h b/net/mptcp/protocol.h index 4913ac7b6d19..09e94726e030 100644 --- a/net/mptcp/protocol.h +++ b/net/mptcp/protocol.h @@ -347,7 +347,8 @@ struct mptcp_subflow_request_sock { struct tcp_request_sock sk; u16 mp_capable : 1, mp_join : 1, - backup : 1; + backup : 1, + csum_reqd : 1; u8 local_id; u8 remote_id; u64 local_key; |