mptcp: implement MSG_TRUNC support
authorPaolo Abeni <pabeni@redhat.com>
Fri, 23 Apr 2021 18:17:06 +0000 (11:17 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2021 21:06:32 +0000 (14:06 -0700)
commitd976092ce1b04d634d408f475224347cfae81201
tree1d6fedac55b77ebb739e9777819a25e9f98c1bda
parentcb9d80f4940ee5d4b7c7cad7418a6c893c6c4279
mptcp: implement MSG_TRUNC support

The mentioned flag is currently silenlty ignored. This
change implements the TCP-like behaviour, dropping the
pending data up to the specified length.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Sigend-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c