tcp: add tcp_done_with_error() helper
authorEric Dumazet <edumazet@google.com>
Tue, 28 May 2024 12:52:50 +0000 (12:52 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 30 May 2024 00:21:35 +0000 (17:21 -0700)
commit5e514f1cba090e1c8fff03e92a175eccfe46305f
tree700501113c117e8a01236efbfd709b64181a7667
parentc3390677f6258748a91bf37b9bb21eab89f63b42
tcp: add tcp_done_with_error() helper

tcp_reset() ends with a sequence that is carefuly ordered.

We need to fix [e]poll bugs in the following patches,
it makes sense to use a common helper.

Suggested-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Neal Cardwell <ncardwell@google.com>
Link: https://lore.kernel.org/r/20240528125253.1966136-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c