<div dir="ltr">For hardware switch, a port with vlan 1020, it&#39;s behavior is:<div><br></div><div>1. packet come into port will set vlan tag 1020 in switch, and then send it.</div><div>2. only packet with vlan 1020 will come out from this port.</div><div><br></div><div>So I don&#39;t know if ovs works like this?</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-07-14 9:46 GMT+08:00 Sam <span dir="ltr">&lt;<a href="mailto:batmanustc@gmail.com" target="_blank">batmanustc@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>I&#39;m testing vlan in both ovs and ovs-dpdk. My topology is:</div><div><br></div><div>vm(121)     vm(120)                           vm(220)</div><div>    |                  |                                       |</div><div>   -------------------                                    ------------------</div><div>       br_t07        | b2                           b2 |      br_t08</div><div>                        ------------------------------<wbr>----</div><div><br></div><div>I set vlan 1020 by `ovs-vsctl set vm121 tag 1020` in br_t07&#39;s vm(121) port and vm(120) port, so the vm(121) could ping through vm(120).</div><div><br></div><div>I set no vlan tag on vm(220), so vm(121) could not ping through vm(220).</div><div><br></div><div>For normal ovs, vm(121) etc port is internal type, b2 is bond port; for ovs-dpdk it&#39;s dpdkvhostuser type, b2 is dpdk bond port.</div><div><br></div><div>Now I use ovs-dump tool to capture packets in br_t07&#39;s b2, and I can&#39;s capture packets with vlan 1020 tag; and I use gdb to debug, also I can&#39;t get it.</div><div><br></div><div>My question is:</div><div>1. In normal ovs, where or which function is to add vlan tag onto packet? I think it&#39;s in datapath?</div><div>2. This is important, in ovs-dpdk, where or which function is to add vlan tag onto packet? I think it&#39;s in pmd?</div></div>
</blockquote></div><br></div>