For hardware switch, a port with vlan 1020, it's behavior is:

1. packet come into port will set vlan tag 1020 in switch, and then send it.
2. only packet with vlan 1020 will come out from this port.

So I don't know if ovs works like this?

2017-07-14 9:46 GMT+08:00 Sam <batmanu...@gmail.com>:

> 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?
>
_______________________________________________
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

Reply via email to