OSDN Git Service

net-zerocopy: Refactor frag-is-remappable test.
authorArjun Roy <arjunroy@google.com>
Wed, 2 Dec 2020 22:53:45 +0000 (14:53 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Dec 2020 21:40:52 +0000 (13:40 -0800)
commit98917cf0d6eda01e8c3c34d35398d46b247b6fd3
tree2be51861e1f38a30e729c63e343e9db4b68d68af
parent7fba5309efe24e4f0284ef4b8663cdf401035e72
net-zerocopy: Refactor frag-is-remappable test.

Refactor frag-is-remappable test for tcp receive zerocopy. This is
part of a patch set that introduces short-circuited hybrid copies
for small receive operations, which results in roughly 33% fewer
syscalls for small RPC scenarios.

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: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp.c