BPF

The bpf setting allows to pin BPF1 programs. The name to the pinning can be later referred from multiple interfaces as XDP2 BPF1 program.

Schema description

bpf:
  # pin BPF program with name `blacklist`
  blacklist:
    object: /home/thomas/src/xdp-tutorial/basic03-map-counter/xdp_prog_kern.o
    section: xdp

interfaces:
  # attach XDP program from pinned BPF program
  eth0:
    link:
      state: up
      kind: physical
    xdp:
      bpf: blacklist

Examples:


  1. Berkeley Packet Filter 

  2. eXpress Data Path