Hi,dear all: I'm using ovs2.5.0 in centos7.2, for the reason of drivers, i has no choice but to use function of vlan splinters. when i set the interface 'eth0' other_config:enable-vlan-splinters=true, and set port br0 tag=100, then linux datapath has create the dev eth0.100, it works.
[root@host-192-168-2-129 target]# ovs-vsctl show 26dd968c-6026-4b72-b079-e69c478afdd9 Bridge "br0" Port "eth1" Interface "eth1" Port "br0" tag: 100 Interface "br0" type: internal ovs_version: "2.5.0" [root@host-192-168-2-129 target]# cat /proc/net/vlan/config VLAN Dev name | VLAN ID Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD eth1.100 | 100 | eth1 But when i use "ip link add ..." to create eth2.200 mannually, eth2.200 can't be created. [root@host-192-168-2-129 target]# ip link add link eth2 name eth2.200 type vlan id 200 [root@host-192-168-2-129 target]# cat /proc/net/vlan/config VLAN Dev name | VLAN ID Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD eth1.100 | 100 | eth1 and when i stop openvswitch.service and do it again, it works. [root@host-192-168-2-129 target]# systemctl stop openvswitch [root@host-192-168-2-129 target]# ip link add link eth2 name eth2.200 type vlan id 200 [root@host-192-168-2-129 target]# cat /proc/net/vlan/config VLAN Dev name | VLAN ID Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD eth1.100 | 100 | eth1 eth2.200 | 200 | eth2 I review the code and realize that function 'collect_splinter_vlans' will collect all real devs from file '/proc/net/vlan/config', and delete all vlan devs while their real devs have no splinters attribution, even they are not in ovs bridge. I think this might not be suitable, eth2 is not in ovs bridge, i should use eth2.200 to communi- cation, but it can't be created, dose anyone can help me? Thanks Best regards, Jonas -------------------------------------------------------- ZTE Information Security Notice: The information contained in this mail (and any attachment transmitted herewith) is privileged and confidential and is intended for the exclusive use of the addressee(s). If you are not an intended recipient, any disclosure, reproduction, distribution or other dissemination or use of the information contained is strictly prohibited. If you have received this mail in error, please delete it and notify us immediately.
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss