All Projects → YutaroHayakawa → vale-bpf

YutaroHayakawa / vale-bpf

Licence: Apache-2.0 License
VALE eBPF extension module

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects
python
139335 projects - #7 most used programming language
C++
36643 projects - #6 most used programming language

Notice

This repository won't be updated until generic-ebpf become stable.

VALE BPF Extension Module

VALE-BPF module is an extension of VALE software switch.

This module makes VALE possible to program with eBPF. It uses generic-ebpf as a backend eBPF system. It may works on the platform which both of generic-ebpf and netmap are supported.

Requirements

Installation

Assume you already installed netmap and generic-ebpf on your system. Please see the documentation of them for more details.

Create VALE

Create switch named vale0 and attach two interfaces

# vale-ctl -n vi0 //interface 0
# vale-ctl -n vi1 //interface 1
# vale-ctl -a vale0:vi0 //attach interface 0 to vale0
# vale-ctl -a vale0:vi1 //attach interface 1 to vale0

Install vale-bpf

$ make
# make load

Loading eBPF program

Now module is loaded to vale0. However, eBPF program is not yet loaded. You need to load eBPF program. Below is an example of running sample application.

$ cd benchmark/vale-bpf/l2_bridge
# ./l2_bridge_loader -v vale0
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].