ovs: set name assign type of internal port
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Tue, 31 May 2016 13:41:02 +0000 (13:41 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Jun 2016 22:05:47 +0000 (18:05 -0400)
Set name_assign_type of internal port to NET_NAME_USER.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/vport-internal_dev.c

index 2ee48e447b724af8afe4c77fa64fe4512d1725fe..434e04c3a189b91512b30ab70e9a238b7d5d9df2 100644 (file)
@@ -195,7 +195,7 @@ static struct vport *internal_dev_create(const struct vport_parms *parms)
        }
 
        vport->dev = alloc_netdev(sizeof(struct internal_dev),
-                                 parms->name, NET_NAME_UNKNOWN, do_setup);
+                                 parms->name, NET_NAME_USER, do_setup);
        if (!vport->dev) {
                err = -ENOMEM;
                goto error_free_vport;