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)
commitc94b1f96dcfb2e5bd072b10f3429ccf28778ad58
tree78c823a069f457d3521baeb95ea192c43e4828d6
parent06fe1719aa501e3b574b1b2b3a7ad2ddac5fb9cb
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