]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: factorize logic into tcp_epollin_ready()
authorEric Dumazet <edumazet@google.com>
Fri, 12 Feb 2021 23:22:14 +0000 (15:22 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Feb 2021 01:28:26 +0000 (17:28 -0800)
commitc9e27c993bdd7702fd1c6418d98e0783a802bf30
tree22d94eb4e97e02482f4528a7590f112f819a10ac
parent04e56677827a54eb036acc978504f0d2f89e1d91
tcp: factorize logic into tcp_epollin_ready()

Both tcp_data_ready() and tcp_stream_is_readable() share the same logic.

Add tcp_epollin_ready() helper to avoid duplication.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Arjun Roy <arjunroy@google.com>
Cc: Wei Wang <weiwan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c