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: Fix stale map removal in agent logs #17973

Merged
merged 2 commits into from
Nov 23, 2021
Merged

bpf: Fix stale map removal in agent logs #17973

merged 2 commits into from
Nov 23, 2021

Commits on Nov 22, 2021

  1. bpf: Move time cache into separate header file

    Reduces scope to where it is really used given this creates a map.
    
    Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
    borkmann committed Nov 22, 2021
    Configuration menu
    Copy the full SHA
    e53866a View commit details
    Browse the repository at this point in the history

Commits on Nov 23, 2021

  1. bpf: Fix l4lb stale map removal under cni mode

    When the agent starts up we can see the following maps being removed as
    stale maps:
    
      [...]
      level=info msg="Restored endpoint" endpointID=3747 ipAddr="[ ]" subsys=endpoint
      level=info msg="Finished regenerating restored endpoints" regenerated=1 subsys=daemon total=1
      level=info msg="Removed stale bpf map" file-path=/sys/fs/bpf/tc/globals/cilium_capture_cache subsys=daemon
      level=info msg="Removed stale bpf map" file-path=/sys/fs/bpf/tc/globals/cilium_ktime_cache subsys=daemon
      [...]
    
    This is due to pcap.h being included from nodeport.h where the former
    defines mentioned maps unconditionally. Rework it, so that both are
    only created in L4LB mode.
    
    Fixes: #17935
    Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
    borkmann committed Nov 23, 2021
    Configuration menu
    Copy the full SHA
    db084fe View commit details
    Browse the repository at this point in the history