Support BESS protocol (for UML)#281
Merged
AkihiroSuda merged 5 commits intorootless-containers:masterfrom Jan 6, 2022
Merged
Conversation
Member
Author
a6527b3 to
dbf96f1
Compare
giuseppe
approved these changes
Jan 5, 2022
Collaborator
giuseppe
left a comment
There was a problem hiding this comment.
I am not familiar with BESS but the code LGTM
Just left two minor comments
| } | ||
| if (argc - optind > 2) { | ||
| // not an error, for preventing potential compatibility issue | ||
| printf("WARNING: too many arguments\n"); |
Collaborator
There was a problem hiding this comment.
should this go to stderr?
Member
Author
There was a problem hiding this comment.
We have been using stdout or printing WARNING messages (why? 😅 )
Lines 563 to 604 in f2ae176
| } | ||
|
|
||
| /* Accept a connection, and send its connection to the parent */ | ||
| printf("Waiting for connection to %s\n", bess_socket); |
Collaborator
There was a problem hiding this comment.
we are using both stdout and stderr for diagnostic messages. Should we just stick to stderr?
BESS protocol transferrs L2 packets as AF_UNIX SOCK_SEQPACKET . BESS protocol has been used by the vector network interfaces of User Mode Linux (UML). ``` (terminal 1) $ slirp4netns --target-type=bess /tmp/bess.sock (terminal 2) $ linux.uml vec0:transport=bess,dst=/tmp/bess.sock,depth=128,gro=1 root=/dev/root rootfstype=hostfs init=/bin/bash mem=2G (terminal 2: UML)$ ip addr add 10.0.2.100/24 dev vec0 (terminal 2: UML)$ ip link set vec0 up (terminal 2: UML)$ ip route add default via 10.0.2.2 ``` More docs about the User Mode Linux with BESS socket transport: https://www.kernel.org/doc/html/latest/virt/uml/user_mode_linux_howto_v2.html#bess-socket-transport Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
Member
Author
|
Use git://git.qemu.org/libslirp.git instead of https://gitlab.freedesktop.org/slirp/libslirp.git temporarily Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
Signed-off-by: Akihiro Suda <[email protected]>
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BESS protocol transferrs L2 packets as AF_UNIX SOCK_SEQPACKET .
BESS protocol has been used by the vector network interfaces of User Mode Linux (UML).
More docs about the User Mode Linux with BESS socket transport: https://www.kernel.org/doc/html/latest/virt/uml/user_mode_linux_howto_v2.html#bess-socket-transport