]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4a40b76b276b8d9f5bcbf4f8b714a95c2f09e58
treeb43f7d441f4d1cac1c2209f57f967655d3d04eb7
parent7dd76008075ddcaa228524ea7c6fde0fa45b8010
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