Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
outscale-fne committed Sep 2, 2020
1 parent 794559f commit 1c1ce14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ For specific brick'informations and shemas:
* [VTEP brick.](VTEP.md)
* [SWITCH brick.](SWITCH.md)

About out testing architecture:
* `wip`

10 changes: 9 additions & 1 deletion doc/VHOST.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ As previously described, VHOST use an unix socket and a hugepage to communicate
It manages a queue and reduce memmory write/free operatons.<br>
It's based on a cient(s)/server model, meaning that one server can handle multiple connections through the socket.<br> Only packet address in the hugepage are flowing through the socket.<br>

## How to use it

* `pg_vhost_start("/tmp", &error)`: start the vhost driver and setup the socket's folder.
* `pg_vhost_new("vhost-0", flags, &error);`: create the brick. The socket will be named `qemu-vhost-0`. Here are some flags availables:
* `PG_VHOST_USER_CLIENT`
* `PG_VHOST_USER_DEQUEUE_ZERO_COPY`

## Current VHOST brick's status

Currently the VHOST brick only works in SERVER mode... Which means that if packetgraph crash, we will need to reboot VMs...<br>Not a good thing!
Currently the VHOST brick only works in SERVER mode... Which means that if packetgraph crash, we will need to reboot VMs...<br>Not a good thing!<br>
However, a PR in in progress to adress this issue.<br>

0 comments on commit 1c1ce14

Please sign in to comment.