Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BPF] send RST to midflow TCP packets from unknown streams #8933

Merged

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    90069ef View commit details
    Browse the repository at this point in the history
  2. [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 projectcalico#8882
    tomastigera committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    05a2b7c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c0de4cd View commit details
    Browse the repository at this point in the history