sdnfv / openNetVM

A high performance container-based NFV platform from GW and UCR.
http://sdnfv.github.io/onvm/
Other
263 stars 135 forks source link

L2switch(l2fwd) #230

Closed bdevierno1 closed 4 years ago

bdevierno1 commented 4 years ago

Layer 2 switch based on dpdk's l2fwd example.

Summary:

The basic functionality of this NF will be the same as the l2fwd example provided by the DPDK It send out packets out the adjacent port and updates the mac address by default.

A good blog post about how this NF works. DPDK's explanation

To run the l2fwd dpdk example with two ports: sudo ./build/l2fwd -l 0-3 -n 4 -- -q 8 -p 3

I have added a flag which will print the mac address of each packet. This was used for debugging purposes. Likewise the NF also prints which port packets are being sent out from each port which is not in the original DPDK example.

Mac updating --enabled by default-- can be disabled with the -n flag. Printing of mac address can be enabled with the -m flag.

Usage:

This PR includes
Resolves issues
Breaking API changes
Internal API changes
Usability improvements
Bug fixes
New functionality
New NF/onvm_mgr args πŸ‘
Changes to starting NFs
Dependency updates
Web stats updates

Merging notes:

TODO before merging :

Test Plan:

NF Checklist:

Review:

@sreya519

onvm commented 4 years ago

In response to PR creation

CI Message

Your results will arrive shortly

twood02 commented 4 years ago

@bdevierno1 I've added a checklist to the bottom of your PR message - can you verify you follow all of these?

twood02 commented 4 years ago

@sreyanalla will do a final test then this is ready

twood02 commented 4 years ago

rename to l2fwd to be consistent with DPDK

dennisafa commented 4 years ago

rename to l2fwd to be consistent with DPDK

Once you do this, I'll merge.

dennisafa commented 4 years ago

@onvm .

onvm commented 4 years ago

@onvm .

CI Message

Your results will arrive shortly

onvm commented 4 years ago

@onvm .

CI Message

Error: Failed to fetch results from nimbnode23

dennisafa commented 4 years ago

@onvm pls

onvm commented 4 years ago

@onvm pls

CI Message

Your results will arrive shortly

onvm commented 4 years ago

@onvm pls

CI Message

Error: Failed to fetch results from nimbnode23

kevindweb commented 4 years ago

@onvm again

onvm commented 4 years ago

@onvm again

CI Message

Your results will arrive shortly

onvm commented 4 years ago

@onvm again

CI Message

Error: Failed to fetch results from nimbnode23

kevindweb commented 4 years ago

Screen Shot 2020-08-02 at 12 32 44 PM For whoever needs it, this is why we're failing

dennisafa commented 4 years ago

Thats weird, I merged the DPDK update before this run. Is there a lag?

On Sun, Aug 2, 2020 at 12:33 PM Kevin Deems notifications@github.com wrote:

[image: Screen Shot 2020-08-02 at 12 32 44 PM] https://user-images.githubusercontent.com/24497157/89127563-54363400-d4bc-11ea-8cc7-b4e5413696f1.png For whoever needs it, this is why we're failing

β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sdnfv/openNetVM/pull/230#issuecomment-667695918, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3EIZUCMBZZ2KLYGV5DXVTR6WIPDANCNFSM4N4PK2HA .

kevindweb commented 4 years ago

Thats weird, I merged the DPDK update before this run. Is there a lag? … On Sun, Aug 2, 2020 at 12:33 PM Kevin Deems @.***> wrote: [image: Screen Shot 2020-08-02 at 12 32 44 PM] https://user-images.githubusercontent.com/24497157/89127563-54363400-d4bc-11ea-8cc7-b4e5413696f1.png For whoever needs it, this is why we're failing β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub <#230 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3EIZUCMBZZ2KLYGV5DXVTR6WIPDANCNFSM4N4PK2HA .

I'm not sure, I haven't run this yet, but I would try to test this as CI does. Maybe delete your local l2switch branch, and pull it in again. Try remaking everything, and see if you get the error.

dennisafa commented 4 years ago

Thats weird, I merged the DPDK update before this run. Is there a lag? … On Sun, Aug 2, 2020 at 12:33 PM Kevin Deems @.***> wrote: [image: Screen Shot 2020-08-02 at 12 32 44 PM] https://user-images.githubusercontent.com/24497157/89127563-54363400-d4bc-11ea-8cc7-b4e5413696f1.png For whoever needs it, this is why we're failing β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub <#230 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3EIZUCMBZZ2KLYGV5DXVTR6WIPDANCNFSM4N4PK2HA .

I'm not sure, I haven't run this yet, but I would try to test this as CI does. Maybe delete your local l2switch branch, and pull it in again. Try remaking everything, and see if you get the error.

Makes sense - this branch isnt merged with the latest dev branch yet. @bdevierno1 if you could just pull the latest dev changes into this branch we can get the tests to pass.

bdevierno1 commented 4 years ago

Thats weird, I merged the DPDK update before this run. Is there a lag? … On Sun, Aug 2, 2020 at 12:33 PM Kevin Deems @.***> wrote: [image: Screen Shot 2020-08-02 at 12 32 44 PM] https://user-images.githubusercontent.com/24497157/89127563-54363400-d4bc-11ea-8cc7-b4e5413696f1.png For whoever needs it, this is why we're failing β€” You are receiving this because you commented. Reply to this email directly, view it on GitHub <#230 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3EIZUCMBZZ2KLYGV5DXVTR6WIPDANCNFSM4N4PK2HA .

I'm not sure, I haven't run this yet, but I would try to test this as CI does. Maybe delete your local l2switch branch, and pull it in again. Try remaking everything, and see if you get the error.

Makes sense - this branch isnt merged with the latest dev branch yet. @bdevierno1 if you could just pull the latest dev changes into this branch we can get the tests to pass.

@dennisafa @dennisafa sorry about that I should have left a comment sating that this will fail without pulling the latest updates.

bdevierno1 commented 4 years ago

@onvm test l2fwd

onvm commented 4 years ago

@onvm test l2fwd

CI Message

Your results will arrive shortly