summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_bpf.c
diff options
context:
space:
mode:
authorArjun Roy <arjunroy@google.com>2020-12-03 01:53:46 +0300
committerJakub Kicinski <kuba@kernel.org>2020-12-05 00:40:53 +0300
commit936ced415751f744654f64977ddbf67d17a2a45a (patch)
tree77b7b5c2672a902ad70db1dfae9fe10f4922657f /net/ipv4/tcp_bpf.c
parent98917cf0d6eda01e8c3c34d35398d46b247b6fd3 (diff)
downloadlinux-936ced415751f744654f64977ddbf67d17a2a45a.tar.xz
net-zerocopy: Fast return if inq < PAGE_SIZE
Sometimes, we may call tcp receive zerocopy when inq is 0, or inq < PAGE_SIZE, in which case we cannot remap pages. In this case, simply return the appropriate hint for regular copying without taking mmap_sem. 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>
Diffstat (limited to 'net/ipv4/tcp_bpf.c')
0 files changed, 0 insertions, 0 deletions