]> git.baikalelectronics.ru Git - kernel.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)
commit921a70c57b18824632df8c2a79b375047195a690
tree86669b2e27fcb1a4f7ecc029d0fa7073685e1150
parentb4e0fce44516e77bfe2094e92be0a3d2b266d276
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