summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@gmail.com>2021-06-17 16:46:09 -0700
committerDavid S. Miller <davem@davemloft.net>2021-06-18 11:40:11 -0700
commit06fe1719aa501e3b574b1b2b3a7ad2ddac5fb9cb (patch)
treeb43f7d441f4d1cac1c2209f57f967655d3d04eb7 /include
parentd0cc298745f5abb3c43319cb9485daf3471d6f94 (diff)
downloadlwn-06fe1719aa501e3b574b1b2b3a7ad2ddac5fb9cb.tar.gz
lwn-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 'include')
-rw-r--r--include/net/mptcp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/net/mptcp.h b/include/net/mptcp.h
index 23bbd439e115..33af68eea96f 100644
--- a/include/net/mptcp.h
+++ b/include/net/mptcp.h
@@ -64,8 +64,9 @@ struct mptcp_out_options {
struct mptcp_rm_list rm_list;
u8 join_id;
u8 backup;
- u8 reset_reason:4;
- u8 reset_transient:1;
+ u8 reset_reason:4,
+ reset_transient:1,
+ csum_reqd:1;
u32 nonce;
u64 thmac;
u32 token;