<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Nov 16, 2018 at 6:00 AM Eric Garver <eric@garver.life> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, Nov 15, 2018 at 03:49:53PM -0800, Sim Paul wrote:<br>
[..]<br>
> My concerns are:<br>
> 1. Shouldn't setting vlan-limit=0, tag=10 push tag=10 on all packets<br>
> leaving VM1 and i should see tag=10 in tcpdump.<br>
> 2. Does setting vlan-limit=0 mean i can push unlimited tags on the packet ?<br>
> How can i test this ?<br>
<br>
No. That's not what it means. You can't push more than the datapath<br>
supports.<br>
<br>
See "vlan-limit" in the ovs-vswitchd.conf man page:<br>
<br></blockquote><div><br></div><div>Ok. That means , currently the "maximum" number of VLAN tags supported are 2<br>which is what the OpenvSwitch userspace currently supports.<br><br>I am still trying to understand the test case behavior that i pasted in my previous email.<br>In my first test case when vlan-limit=1, the ping worked because<br>only the outside VLAN tag (36) was inspected ??</div><div>But in second case when i set vlan-limit=2, ping stopped working because</div><div>both tags 36 and 120 were inspected ?<br><br></div><div>Shouldn't the ping work even in second test case ?</div><div>Pardon my ignorance about vlan tag matching inside the kernel here, but<br>can someone explain how the packet matching would occur if packet has >= 2 tags.</div><div>If another tag is forced onto the packet, would that third tag be dropped or would it replace<br>an existing tag ?</div><div><br></div><div>Thanks,<br></div><div>--Simran</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<a href="http://www.openvswitch.org/support/dist-docs/ovs-vswitchd.conf.db.5.html" rel="noreferrer" target="_blank">http://www.openvswitch.org/support/dist-docs/ovs-vswitchd.conf.db.5.html</a><br>
<br>
"Value 0 means unlimited. The actual number of supported VLAN<br>
headers is the smallest of vlan-limit, the number of VLANs sup‐<br>
ported by Open vSwitch userspace (currently 2), and the number<br>
supported by the datapath."<br>
</blockquote></div></div>