OSDN Git Service

mptcp: add csum_reqd in mptcp_out_options
authorGeliang Tang <geliangtang@gmail.com>
Thu, 17 Jun 2021 23:46:09 +0000 (16:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 18:40:11 +0000 (11:40 -0700)
commit06fe1719aa501e3b574b1b2b3a7ad2ddac5fb9cb
treeb43f7d441f4d1cac1c2209f57f967655d3d04eb7
parentd0cc298745f5abb3c43319cb9485daf3471d6f94
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>
include/net/mptcp.h
net/mptcp/options.c
net/mptcp/protocol.h
net/mptcp/subflow.c