]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: send out checksum for MP_CAPABLE with data
authorGeliang Tang <geliangtang@gmail.com>
Thu, 17 Jun 2021 23:46:10 +0000 (16:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 18:40:11 +0000 (11:40 -0700)
commit625547d8b3b3549d949f066bfd5d35e727605eae
tree78c823a069f457d3521baeb95ea192c43e4828d6
parent80d81e1d2caddb105383cf04a6e6798c322dd42e
mptcp: send out checksum for MP_CAPABLE with data

If the checksum is enabled, send out the data checksum with the
MP_CAPABLE suboption with data.

In mptcp_established_options_mp, save the data checksum in
opts->ext_copy.csum. In mptcp_write_options, adjust the option length and
send it out with the MP_CAPABLE suboption.

Co-developed-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-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