[ovs-dev] When did vlan tag add into packet in ovs and ovs-dpdk?

Sam batmanustc at gmail.com
Fri Jul 14 01:46:39 UTC 2017


Hi all,

I'm testing vlan in both ovs and ovs-dpdk. My topology is:

vm(121)     vm(120)                           vm(220)
    |                  |                                       |
   -------------------                                    ------------------
       br_t07        | b2                           b2 |      br_t08
                        ----------------------------------

I set vlan 1020 by `ovs-vsctl set vm121 tag 1020` in br_t07's vm(121) port
and vm(120) port, so the vm(121) could ping through vm(120).

I set no vlan tag on vm(220), so vm(121) could not ping through vm(220).

For normal ovs, vm(121) etc port is internal type, b2 is bond port; for
ovs-dpdk it's dpdkvhostuser type, b2 is dpdk bond port.

Now I use ovs-dump tool to capture packets in br_t07's b2, and I can's
capture packets with vlan 1020 tag; and I use gdb to debug, also I can't
get it.

My question is:
1. In normal ovs, where or which function is to add vlan tag onto packet? I
think it's in datapath?
2. This is important, in ovs-dpdk, where or which function is to add vlan
tag onto packet? I think it's in pmd?


More information about the dev mailing list