forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[wip] Implement L2fwd #4
Closed
Conversation
This file contains 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
More or less I'm convinced this is the way to go. Use of packetblaster + l2fwd involves 4 ports (NICs). I will update the upstream PR with more changes. I think I will send a patch to the packetblaster too so it can report on received packets (as it's a two-way forwarder packets will eventually get back to the port of the packetblaster, completing the whole loop). |
* L2Fwd app is not necessary. * Drop support of tap interfaces (packetblaster can only blast packets to a PCI device).
- Remove reset() method in LoadGen. - Remove unnecessary prefix 'pci'.
dpino
pushed a commit
that referenced
this pull request
May 17, 2016
…pport. (#4) Add ingress, egress and hairpin counters, with preliminary testing support
dpino
pushed a commit
that referenced
this pull request
Apr 17, 2018
CONDUCT.md: Add simple code of conduct
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.
I made this temporary PR to discuss implementation of L2Fwd.
I want to make the L2Fwd a two-way forwarder as suggested by Nikolay (and actually that's how DPDK's l2fwd seems to work) . My setting environment is the following (arrow means NICs are wired with one another).
I blast packets on 0000:04:00.0. I create a l2fwd between 0000:05:00.0 and 0000:04:00.1, which forwards packets received in the former NIC to the latter. Packets are received in 0000:04:00.1 but when I try to send back the packets from 0000:04:00.1 to 0000:05:00.0 the link reports 0 packets transmitted:
What I noticed is that packets received in 0000:04:00.1 are actually transmitted to 0000:05:00.1 (because cards are wired together). I made a custom app that listens on 0000:05:00.1 and it reports received packets:
After this observation, I think a deployment of a l2fwd involves 4 NICs:
I think that's what the diagram at http://dpdk.org/doc/guides/sample_app_ug/l2_forward_real_virtual.html explains. Comments? Thoughts?
On the other hand, I'm not sure what's the the best command interface for this app. Should we request the user to introduce 3 PCI addresses? Spare the use of packetblaster, generate packets on our own and request 4 PCIs?