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

High-scale IPcache: Chapter 4 #25591

Merged
merged 3 commits into from May 24, 2023
Merged

Commits on May 22, 2023

  1. bpf, datapath: Macro with tunneling protocol

    This commit exposes the tunneling protocol from the agent to the BPF
    code, to be used in a later commit. Two constants are also generated by
    the agent to hold the values for tunneling protocols VXLAN and GENEVE.
    
    Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
    pchaigno committed May 22, 2023
    Configuration menu
    Copy the full SHA
    631c70e View commit details
    Browse the repository at this point in the history
  2. bpf: Support GENEVE with high-scale ipcache mode

    In high-scale ipcache mode, we have a special tunnel where the outer IP
    addresses are also the inner IP addresses. For that reason, we need to
    manually (using BPF helpers) decapsulate the ingressing packets or the
    Linux kernel would deliver encapsulated packets to the target pods.
    
    This manual decapsulation is only performed for VXLAN now. The present
    commit adds support for decapsulating GENEVE packets.
    
    The GENEVE header consists of a fixed-length part, and variable-length
    options. So when stripping off the encapsulation, also consider the
    options.
    
    Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
    Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
    pchaigno committed May 22, 2023
    Configuration menu
    Copy the full SHA
    300844e View commit details
    Browse the repository at this point in the history
  3. test: Cover GENEVE in high-scale ipcache tests

    This commit refactors the test logic into a function so that we can call
    this code twice with the two supported tunneling protocols.
    
    Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
    pchaigno committed May 22, 2023
    Configuration menu
    Copy the full SHA
    4dd73e1 View commit details
    Browse the repository at this point in the history