X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=extras%2Flibmemif%2FREADME.md;h=a8807a3881178adfa6f8982a90650e75d15af98c;hb=8c3f04816a8fd23a5eabde1b36cb2471e06229bc;hp=d663fd2043a6288958c0e8f4d848a58387fbfa90;hpb=da815585c3f75c4ac073b0766dd668abf83844d8;p=govpp.git diff --git a/extras/libmemif/README.md b/extras/libmemif/README.md index d663fd2..a8807a3 100644 --- a/extras/libmemif/README.md +++ b/extras/libmemif/README.md @@ -9,7 +9,7 @@ labels `Go-libmemif` and `C-libmemif` are used in the documentation. libmemif for Golang is build on the top of the original, C-written libmemif library using `cgo`. It is therefore necessary to have C-libmemif -header files and the library itself installed in locations known +header files, and the library itself installed in locations known to the compiler. For example, to install C-libmemif system-wide into the standard @@ -17,9 +17,10 @@ locations, execute: ``` $ git clone https://gerrit.fd.io/r/vpp $ cd vpp/extras/libmemif -$ ./bootstrap -$ ./configure -$ make install +$ mkdir build +$ cd build +$ cmake .. +$ sudo make install ``` ### Build @@ -77,7 +78,7 @@ Available callbacks are: **libmemif** was designed for a maximum possible performance. Packets are sent and received in bulks, rather than one-by-one, using `Memif.TxBurst(queueID, packets)` and `Memif.RxBurst(queueID, count)`, -respectively. Memif connection can consists of multiple queues in both +respectively. Memif connection can consist of multiple queues in both directions. A queue is one-directional wait-free ring buffer. It is the unit of parallelism for data transmission. The maximum possible lock-free granularity is therefore one go routine for one queue. @@ -121,7 +122,7 @@ The examples can be found in the subdirectory [examples](./examples). *raw-data* is a basic example showing how to create a memif interface, handle events through callbacks and perform Rx/Tx of raw data. Before -handling an actual packets it is important to understand the skeleton +handling an actual packet it is important to understand the skeleton of libmemif-based applications. Since VPP expects proper packet data, it is not very useful to connect