]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mptcp: add csum_reqd in mptcp_options_received
authorGeliang Tang <geliangtang@gmail.com>
Thu, 17 Jun 2021 23:46:13 +0000 (16:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 18:40:11 +0000 (11:40 -0700)
commit0625118115cf2ee8e435bf86d1c1f0bfdee9d7c8
tree86669b2e27fcb1a4f7ecc029d0fa7073685e1150
parentc863225b79426459feca2ef5b0cc2f07e8e68771
mptcp: add csum_reqd in mptcp_options_received

This patch added a new flag csum_reqd in struct mptcp_options_received, if
the flag MPTCP_CAP_CHECKSUM_REQD is set in the receiving MP_CAPABLE
suboption, set this flag.

In mptcp_sk_clone and subflow_finish_connect, if the csum_reqd flag is set,
enable the msk->csum_enabled 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>
net/mptcp/options.c
net/mptcp/protocol.c
net/mptcp/protocol.h
net/mptcp/subflow.c