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
