]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: correctly handle increased zerocopy args struct size
authorArjun Roy <arjunroy@google.com>
Thu, 10 Dec 2020 19:16:03 +0000 (11:16 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 21:10:32 +0000 (13:10 -0800)
commit48c7c5e2b46ced8585519c24eafb535f626bab0c
tree3e80941720fd71b4783e41c7641ade1d53eb229f
parenta6b0f7d59b280811a6fb91cd52814c26e968e69a
tcp: correctly handle increased zerocopy args struct size

A prior patch increased the size of struct tcp_zerocopy_receive
but did not update do_tcp_getsockopt() handling to properly account
for this.

This patch simply reintroduces content erroneously cut from the
referenced prior patch that handles the new struct size.

Fixes: 4ab1e4730a83 ("net-zerocopy: Copy straggler unaligned data for TCP Rx. zerocopy.")
Signed-off-by: Arjun Roy <arjunroy@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp.c