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

datapath: Use bpftool for generating BPF feature macros #10019

Merged
merged 5 commits into from Mar 17, 2020

Commits on Mar 16, 2020

  1. checker: Support partial regexp matches

    Matches from gocheck doesn't support partial regexp matches and requires
    expressions that match the full string. This change introduces the new
    PartialMatches checker which solves that problem.
    
    Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
    vadorovsky committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    c68e6ca View commit details
    Browse the repository at this point in the history
  2. datapath: Use bpftool for generating BPF feature macros

    To adjust BPF programs to different kernels containing different BPF
    features, bpftool provides macros like i.e.:
    
      # bpftool feature probe macros
      /*** System call availability ***/
      #define HAVE_BPF_SYSCALL
      [...]
      /*** eBPF map types ***/
      #define HAVE_HASH_MAP_TYPE
      [...]
    
    Cilium implemented similar macros on its own, but from this change it's
    going to use the bpftool implementation. After this change, the output
    of `bpftool feature probe macros` is written to the `bpf_features.h`.
    
    Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
    vadorovsky committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    c7c4f51 View commit details
    Browse the repository at this point in the history
  3. bpf: Use bpftool feature macros

    Previous changed dropped our custom BPF feature probes in favor of
    bpftool which also generates feature macros for BPF programs. This
    change switches all BPF programs to them.
    
    Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
    vadorovsky committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    ea87ca7 View commit details
    Browse the repository at this point in the history
  4. bpf: Remove old style probes

    Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
    vadorovsky committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    c2c6bd3 View commit details
    Browse the repository at this point in the history
  5. doc: Remove information about probes logs in /var/run/cilium/state

    Previous changes remove Cilium BPF feature probes in favor of bpftool
    probes, which are executed by daemon in Go code and errors are included
    in the cilium-agent log. Additional .log file is not created anymore.
    
    Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
    vadorovsky committed Mar 16, 2020
    Configuration menu
    Copy the full SHA
    c3a7a5d View commit details
    Browse the repository at this point in the history