]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: keep snd_una updated for fallback socket
authorPaolo Abeni <pabeni@redhat.com>
Fri, 7 Jan 2022 00:20:14 +0000 (16:20 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Jan 2022 11:27:06 +0000 (11:27 +0000)
commitfa3884982e7fbceed72394506c4d0aecda0c9a55
tree31186773f148b0b7022ce019d1842ecdd0bcdad7
parent5f4bb891aea0df210e43c2bfde95cd2687dc6c18
mptcp: keep snd_una updated for fallback socket

After shutdown, for fallback MPTCP sockets, we always have

write_seq == snd_una+1

The above will foul OUTQ ioctl(). Keep snd_una in sync with
write_seq even after shutdown.

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