-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BPF] send RST to midflow TCp packets from unknown streams
For a smooth switch from iptables to ebpf mode, we do not want to interrupt existing connections. If we see midflow packets, we pass them to the host stack. If the stack can verify that they belong to an existing conntrack, we let them through and we learn the conntrack. We drop the rest. However, there are some situations when we can see a stray TCP packet during ebpf mode, for instance when a pod dies and ECMP kicks in and sends a packet to a different host. If such a packet gets dropped, the end of the connections remains stuck. This change sends an RST to such a stream instead of just dropping the packets so that the end host can break the connection. Fixes #8882
- Loading branch information
1 parent
54c3a00
commit 22554ca
Showing
4 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters