]> git.baikalelectronics.ru Git - kernel.git/commit
net-zerocopy: Fast return if inq < PAGE_SIZE
authorArjun Roy <arjunroy@google.com>
Wed, 2 Dec 2020 22:53:46 +0000 (14:53 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Dec 2020 21:40:53 +0000 (13:40 -0800)
commit48871c2847abdcb1550ffc1f70b560e5189625ab
tree77b7b5c2672a902ad70db1dfae9fe10f4922657f
parent84d8c481d8c1ec0cb3cdbb7611c7c8f2e9d842da
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>
net/ipv4/tcp.c