Example apps with cBPF/eBPF

The following two new examples have been added to the SDK repository and the MkDocs:

  1. cBPF Virtual Patch (single-thread)
    A demonstration of a virtual patch between two nodes with an attached cBPF filter on one of the interfaces.
    GitHub Link: packetcord.io/apps/l2_patch_cbpf at main · packetcord/packetcord.io · GitHub
    Topology File: topology_examples/l2_patch.json

  2. eBPF Virtual Patch (single-thread)
    A demonstration of a virtual patch between two nodes with an attached eBPF programme on one of the interfaces. Communication between kernel and user space is also included in this example via a BPF ring buffer.
    GitHub Link: packetcord.io/apps/l2_patch_ebpf at main · packetcord/packetcord.io · GitHub
    Topology File: topology_examples/l2_dpdk_patch.json

They both attach the xBPF filter (programme) on a socket basis. In the (near) future, the complete implementation inside CORD-FLOW is planned to look as follows:

Enjoy! :slight_smile: