Skip to content
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

Add VLAN related apps #863

Merged
merged 7 commits into from
May 12, 2016
Merged

Add VLAN related apps #863

merged 7 commits into from
May 12, 2016

Conversation

plajjan
Copy link
Contributor

@plajjan plajjan commented Apr 8, 2016

This code is based on the work of Andy Wingo as part of the lwAFTR but I have expanded the simple Tagger/Untagger with a Mux program that can mux / demux packets based on VLAN tag. See the README for more info.

I tried to put a few useful functions as functions that can potentially be called from other applications, like if someone want to extract TCI or whatever themselves.

Unfortunately I think there's a HOLB issue in there. It's a tad tricky checking output when there are so many potential outputs. I think this works well enough for most use cases though.

@plajjan plajjan force-pushed the vlanmux branch 3 times, most recently from 22407cb to 088c468 Compare April 9, 2016 00:02

## VlanMux

Despite the name, VlanMux can act both as a multiplexer, i.e. receive packes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: s/packes/packets/

@plajjan
Copy link
Contributor Author

plajjan commented Apr 12, 2016

@dpino I believe I have addressed all of your concerns now :)

@dpino
Copy link
Contributor

dpino commented Apr 12, 2016

@plajjan Cool, thanks. LGTM.

It's not used since the app is configured entirely based on the
connected links.
@eugeneia
Copy link
Member

@dpino @plajjan From my stand point, to merge this I would like to see

  1. apps.lwaftr.vlan removed
  2. Replace all uses of apps.lwaftr.vlan with apps.vlan.vlan

@plajjan
Copy link
Contributor Author

plajjan commented Apr 13, 2016

@eugeneia mmkay, I was thinking that would be a separate PR but if you want to see it in the same I'll see if I can put something together :)

plajjan added 2 commits April 13, 2016 23:51
Use the standard VLAN module instead of the one previously shipped with
lwAFTR.
@plajjan
Copy link
Contributor Author

plajjan commented Apr 13, 2016

@eugeneia I actually found way fewer references than I thought so I've updated them. PTAL.

@dpino
Copy link
Contributor

dpino commented Apr 14, 2016

LGTM.

@eugeneia
Copy link
Member

Its was rightfully pointed out in #865 that I should probably not be the next hop for this, but @wingo or @kbara instead. Unless there is some argument against merging this I would just go ahead and merge it, and look more closely if I should be the next hop next time, OK? Alternatively you could assign yourselves and take over the wheel.

@kbara
Copy link
Contributor

kbara commented Apr 14, 2016

I'm of two minds on that. I'd like @wingo or I to be the next hop on changes within the lwaftr-related directories, but I also like modifications that involve code spilling out from the lwaftr into Snabb as a whole to go through you/someone outside Igalia.

@plajjan
Copy link
Contributor Author

plajjan commented Apr 14, 2016

So maybe the best thing here is that we split this. First one PR to add apps.vlan.vlan that @eugeneia can accept. Then a second one to change lwaftr to use apps.vlan.vlan. @kbara sounds good? Where should I open that second PR? Here? igalia/snabb? That first change need to land on whatever I'm submitting the second PR for...

@eugeneia
Copy link
Member

@kbara Since @lukego is the next hop for you and @wingo I think its sensible to have one of you guys as the next hop for all lwaftr related changes in the future.

Can I go ahead and merge this anyways?

@kbara
Copy link
Contributor

kbara commented Apr 14, 2016

This change set LGTM as is, and I'm happy with it being merged as-is. My comment was with regards to @eugeneia 's musings on who should review such changes. Pragmatically, I think they should be LGTM'd by him and (either Wingo or I), which this now has been, regardless of whether the first or second set is officially the assignee.
Thanks for your work on this, @plajjan and @eugeneia .

@eugeneia eugeneia merged commit 3ba5f4d into snabbco:master May 12, 2016
takikawa pushed a commit to takikawa/snabb that referenced this pull request Jul 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants