nat: use correct data types for memory sizes
[vpp.git] / README.md
1 Vector Packet Processing
2 ========================
3
4 ## Introduction
5
6 The VPP platform is an extensible framework that provides out-of-the-box
7 production quality switch/router functionality. It is the open source version
8 of Cisco's Vector Packet Processing (VPP) technology: a high performance,
9 packet-processing stack that can run on commodity CPUs.
10
11 The benefits of this implementation of VPP are its high performance, proven
12 technology, its modularity and flexibility, and rich feature set.
13
14 For more information on VPP and its features please visit the
15 [FD.io website](http://fd.io/) and
16 [What is VPP?](https://wiki.fd.io/view/VPP/What_is_VPP%3F) pages.
17
18
19 ## Changes
20
21 Details of the changes leading up to this version of VPP can be found under
22 @ref release_notes.
23
24
25 ## Directory layout
26
27 | Directory name         | Description                                 |
28 | ---------------------- | ------------------------------------------- |
29 |      build-data        | Build metadata                              |
30 |      build-root        | Build output directory                      |
31 |      doxygen           | Documentation generator configuration       |
32 |      dpdk              | DPDK patches and build infrastructure       |
33 | @ref extras/libmemif   | Client library for memif                    |
34 | @ref src/examples      | VPP example code                            |
35 | @ref src/plugins       | VPP bundled plugins directory               |
36 | @ref src/svm           | Shared virtual memory allocation library    |
37 |      src/tests         | Standalone tests (not part of test harness) |
38 |      src/vat           | VPP API test program                        |
39 | @ref src/vlib          | VPP application library                     |
40 | @ref src/vlibapi       | VPP API library                             |
41 | @ref src/vlibmemory    | VPP Memory management                       |
42 | @ref src/vnet          | VPP networking                              |
43 | @ref src/vpp           | VPP application                             |
44 | @ref src/vpp-api       | VPP application API bindings                |
45 | @ref src/vppinfra      | VPP core library                            |
46 | @ref src/vpp/api       | Not-yet-relocated API bindings              |
47 |      test              | Unit tests and Python test harness          |
48
49 ## Getting started
50
51 In general anyone interested in building, developing or running VPP should
52 consult the [VPP wiki](https://wiki.fd.io/view/VPP) for more complete
53 documentation.
54
55 In particular, readers are recommended to take a look at [Pulling, Building,
56 Running, Hacking, Pushing](https://wiki.fd.io/view/VPP/Pulling,_Building,_Run
57 ning,_Hacking_and_Pushing_VPP_Code) which provides extensive step-by-step
58 coverage of the topic.
59
60 For the impatient, some salient information is distilled below.
61
62
63 ### Quick-start: On an existing Linux host
64
65 To install system dependencies, build VPP and then install it, simply run the
66 build script. This should be performed a non-privileged user with `sudo`
67 access from the project base directory:
68
69     ./extras/vagrant/build.sh
70
71 If you want a more fine-grained approach because you intend to do some
72 development work, the `Makefile` in the root directory of the source tree
73 provides several convenience shortcuts as `make` targets that may be of
74 interest. To see the available targets run:
75
76     make
77
78
79 ### Quick-start: Vagrant
80
81 The directory `extras/vagrant` contains a `VagrantFile` and supporting
82 scripts to bootstrap a working VPP inside a Vagrant-managed Virtual Machine.
83 This VM can then be used to test concepts with VPP or as a development
84 platform to extend VPP. Some obvious caveats apply when using a VM for VPP
85 since its performance will never match that of bare metal; if your work is
86 timing or performance sensitive, consider using bare metal in addition or
87 instead of the VM.
88
89 For this to work you will need a working installation of Vagrant. Instructions
90 for this can be found [on the Setting up Vagrant wiki page]
91 (https://wiki.fd.io/view/DEV/Setting_Up_Vagrant).
92
93
94 ## More information
95
96 Several modules provide documentation, see @subpage user_doc for more
97 end-user-oriented information. Also see @subpage dev_doc for developer notes.
98
99 Visit the [VPP wiki](https://wiki.fd.io/view/VPP) for details on more
100 advanced building strategies and other development notes.
101
102
103 ## Test Framework
104
105 There is PyDoc generated documentation available for the VPP test framework.
106 See @ref test_framework_doc for details.