OSDN Git Service

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)
commite0fecb289ad3fd2245cdc50bf450b97fcca39884
tree3e80941720fd71b4783e41c7641ade1d53eb229f
parenta76b6b1fe8312905e3f91279f93a4c0cf3b1707c
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: 18fb76ed5386 ("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