<div dir="ltr"><div>Hi Slawek</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 4, 2020 at 9:53 AM Slawek Kaplonski <<a href="mailto:skaplons@redhat.com">skaplons@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
On Tue, Jun 02, 2020 at 05:37:37PM -0700, Ben Pfaff wrote:<br>
> On Tue, Jun 02, 2020 at 01:25:05PM +0200, Slawek Kaplonski wrote:<br>
> > Hi,<br>
> > <br>
> > I work in OpenStack Neutron mostly. We have there extension called<br>
> > "vlan_transparent". See [1] for details.<br>
> > Basically it allows to send traffic with vlan tags directly to the VMs.<br>
> > <br>
> > Recently I was testing if that extension will work with OVN backend used in<br>
> > Neutron. And it seems that we have work to do to make it working.<br>
> > From my test I found out that for each port I had rule like:<br>
> > <br>
> >     cookie=0x0, duration=17.580s, table=8, n_packets=6, n_bytes=444, idle_age=2, priority=100,metadata=0x2,vlan_tci=0x1000/0x1000 actions=drop<br>
> > <br>
> > which was dropping those tagged packets. After removal of this rule traffic was<br>
> > fine.<br>
> > So we need to have some way to tell northd that it shouldn't match on vlan_tci<br>
> > at all in case when neutron network has got vlan_transparency set to True.<br>
> > <br>
> > From the discussion with Daniel Alvarez he told me that somehow we can try to<br>
> > leverage such columns to request transparency (for example: parent_name=none<br>
> > and tag_request=0). With this, northd can enforce transparency per port.<br>
> > <br>
> > Another option could be to create an option in the “other_config” column in the<br>
> > logical switch to have the setting per Neutron network<br>
> > (other_config:vlan_transparent) While this seems more natural, it may break the<br>
> > trunk/subport current feature.<br>
> > <br>
> > What do You, as ovn developers thinks about that?<br>
> > Is that maybe possible somehow to do currently in northd? Or is one of the<br>
> > options given above doable and acceptable for You?<br>
> <br>
> This might be a place to consider using QinQ (at least, until Neutron<br>
> introduces QinQ transparency).<br>
<br>
I'm not sure if I understand. For now Neutron don't supports QinQ - old RFE is<br>
postponed currently [1].<br>
And my original use case is related to the Neutron tenant networks which is<br>
Geneve type. How QinQ can help with that?<br></blockquote><div><br></div><div>I think that Ben's suggestion could possibly allow you to achieve your goal while at the same time having QinQ in OVN:? </div><div><br></div><div>On one hand, not matching on CFI bit (vlan_tci=0x1000/0x1000) based on some configuration of the Logical Switch, would achieve the VLAN transparency by allowing traffic tagged on a logical switch port that is originally untagged.</div><div><br></div><div>While this is probably enough for your use case, it'll break the trunk/subport use case where we expect the traffic to be tagged. In this case we'll need to pop one VLAN tag (the one to achieve VLAN transparency) and match on the second tag to determine the logical port (subport). This could be solved in the general case by QinQ but looks more complex I believe.</div><div><br></div><div>Thoughts?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> <br>
<br>
[1] <a href="https://bugs.launchpad.net/neutron/+bug/1705719" rel="noreferrer" target="_blank">https://bugs.launchpad.net/neutron/+bug/1705719</a><br>
<br>
-- <br>
Slawek Kaplonski<br>
Senior software engineer<br>
Red Hat<br>
<br>
_______________________________________________<br>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org" target="_blank">discuss@openvswitch.org</a><br>
<a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank">https://mail.openvswitch.org/mailman/listinfo/ovs-discuss</a><br>
</blockquote></div></div>