On Tue, Apr 18, 2017 at 12:22:56PM +0800, Dickens Yeh wrote: > Yes, I use the master branch and set with vlan-limit=0. > The line 362 says "e.g. a packet with more 802.1q headers will match > Ethernet type 0x8100."
This applies if the number of VLAN tags exceeds the value of vlan-limit. For example, vlan-limit == 2 and the frame has 3 VLAN tags then the dl_type will be 0x8100 because OVS can only look at the first two tags. Anything after that is considered payload. > Is that means OVS will keep match 0x8100 that not the defined from OpenFlow > spec or maybe will be fixed with maybe next version? I'm not sure I understand what you're asking here. Hopefully my comment above helps. > > best wishes, > Dickens Yeh > > > 2017-04-17 22:51 GMT+08:00 Eric Garver <[email protected]>: > > > On Mon, Apr 17, 2017 at 01:26:37PM +0800, Dickens Yeh wrote: > > > Hello, > > > I have a problem with matching ethertype when the packet with vlan tags. > > > My testing environment is Ubuntu 16 in vmware fusion, mininet 2.2.2rc1, > > > openvswitch 2.7.90 > > > > > > With these cases: > > > case 1: packet with vlan=100,ethertype=arp > > > case 2: packet with vlan=2000,vlan=100,ethertype=arp > > > > > > The result of cases: > > > case 1 can be matched by vlan=100 and ethertype=arp fields in a flow > > entry > > > case 2 can be matched only by vlan=2000 and ethertype=0x8100 fields in a > > > flow entry > > > > > > But I read some informations from OpenFlow Spec 1.1, that says about > > "match > > > ethertype after all vlan tags". > > > Is the resulf of case 2 should be matched vlan=2000 and ethertype=arp? > > > > Until very recently openvswitch only supported a single VLAN tag. > > Current master branch has support for 802.1ad/QinQ and can match the ARP > > EtherType as you wish in case 2 above. > > > > To use it you'll have to build from master and set vlan-limit=2 or > > vlan-limit=0. > > See https://github.com/openvswitch/ovs/blob/master/ > > vswitchd/vswitch.xml#L362 > > > > > > > > > > > Thanks for your reply. > > > > > > best wishes, > > > Dickens Yeh > > > > > _______________________________________________ > > > discuss mailing list > > > [email protected] > > > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss > > > > > _______________________________________________ > discuss mailing list > [email protected] > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
