MCPcopy Index your code
hub / github.com/FDio/vpp

github.com/FDio/vpp @v26.06

Chat with this repo
repository ↗ · DeepWiki ↗ · release v26.06 ↗ · + Follow
39,234 symbols 148,864 edges 3,311 files 6,936 documented · 18%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Vector Packet Processing

Introduction

The VPP platform is an extensible framework that provides out-of-the-box production quality switch/router functionality. It is the open source version of Cisco's Vector Packet Processing (VPP) technology: a high performance, packet-processing stack that can run on commodity CPUs.

The benefits of this implementation of VPP are its high performance, proven technology, its modularity and flexibility, and rich feature set.

For more information on VPP and its features please visit the FD.io website and What is VPP? pages.

Changes

Details of the changes leading up to this version of VPP can be found under doc/releasenotes.

Directory layout

Directory name Description
build-data Build metadata
build-root Build output directory
docs Sphinx Documentation
dpdk DPDK patches and build infrastructure
extras/libmemif Client library for memif
src/examples VPP example code
src/plugins VPP bundled plugins directory
src/svm Shared virtual memory allocation library
src/tests Standalone tests (not part of test harness)
src/vat VPP API test program
src/vlib VPP application library
src/vlibapi VPP API library
src/vlibmemory VPP Memory management
src/vnet VPP networking
src/vpp VPP application
src/vpp-api VPP application API bindings
src/vppinfra VPP core library
src/vpp/api Not-yet-relocated API bindings
test Unit tests and Python test harness

Getting started

In general anyone interested in building, developing or running VPP should consult the VPP wiki for more complete documentation.

In particular, readers are recommended to take a look at Pulling, Building, Running, Hacking, Pushing which provides extensive step-by-step coverage of the topic.

For the impatient, some salient information is distilled below.

Quick-start: On an existing Linux host

To install system dependencies, build VPP and then install it, simply run the build script. This should be performed a non-privileged user with sudo access from the project base directory:

./extras/vagrant/build.sh

If you want a more fine-grained approach because you intend to do some development work, the Makefile in the root directory of the source tree provides several convenience shortcuts as make targets that may be of interest. To see the available targets run:

make

Quick-start: Vagrant

The directory extras/vagrant contains a VagrantFile and supporting scripts to bootstrap a working VPP inside a Vagrant-managed Virtual Machine. This VM can then be used to test concepts with VPP or as a development platform to extend VPP. Some obvious caveats apply when using a VM for VPP since its performance will never match that of bare metal; if your work is timing or performance sensitive, consider using bare metal in addition or instead of the VM.

For this to work you will need a working installation of Vagrant. Instructions for this can be found [on the Setting up Vagrant wiki page] (https://wiki.fd.io/view/DEV/Setting_Up_Vagrant).

Quick-start: FreeBSD

VPP is packaged in the FreeBSD ports system. Binary packages are available and can be installed with the following command:

# pkg install vpp

More information

Several modules provide documentation, see @subpage user_doc for more end-user-oriented information. Also see @subpage dev_doc for developer notes.

Visit the VPP wiki for details on more advanced building strategies and other development notes.

Extension points exported contracts — how you extend this code

TcpHarnessAction (Interface)
(no doc) [1 implementers]
test/hs-test/infra/suite_tcp_harness.go
NetConfig (Interface)
(no doc) [1 implementers]
test/hs-test/infra/netconfig.go
AfPacketOption (FuncType)
(no doc)
test/hs-test/infra/vppinstance.go
TcpHarnessActionFunc (FuncType)
(no doc)
test/hs-test/infra/suite_tcp_harness.go
InterfaceAdder (FuncType)
(no doc)
test/hs-test/infra/netconfig.go

Core symbols most depended-on inside this repo

unformat
called by 6577
src/vppinfra/unformat.c
format
called by 6273
src/vppinfra/format.c
vlib_cli_output
called by 2540
src/vlib/cli.c
vlib_buffer_get_current
called by 1421
src/vlib/buffer.h
cli
called by 1337
test/vpp_papi_provider.py
unformat_check_input
called by 1273
src/vppinfra/format.h
clib_memcpy_fast
called by 1147
src/vppinfra/string.h
print
called by 1045
src/vppinfra/cJSON.c

Shape

Function 25,924
Method 8,966
Class 3,737
Enum 494
Struct 92
TypeAlias 10
Interface 6
FuncType 5

Languages

C58%
Python22%
C++17%
Go3%

Modules by API surface

test/test_ipsec_esp.py383 symbols
test/test_ipsec_tun_if_esp.py248 symbols
test/test_ikev2.py182 symbols
test/test_ip6.py175 symbols
test/asf/test_vcl.py172 symbols
test/test_ip4.py157 symbols
test/test_bfd.py142 symbols
src/tools/vppapigen/vppapigen.py140 symbols
src/plugins/lisp/lisp-cp/control.c136 symbols
test/template_ipsec.py135 symbols
src/vcl/vcl_locked.c131 symbols
test/test_reassembly.py127 symbols

For agents

$ claude mcp add vpp \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact