diff mbox

[net-next] ovs: set name assign type of internal port

Message ID 1464702062-7220-1-git-send-email-zhangshengju@cmss.chinamobile.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Zhang Shengju May 31, 2016, 1:41 p.m. UTC
Set name_assign_type of internal port to NET_NAME_USER.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
---
 net/openvswitch/vport-internal_dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

David Miller June 2, 2016, 7:07 p.m. UTC | #1
From: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Date: Tue, 31 May 2016 13:41:02 +0000

> Set name_assign_type of internal port to NET_NAME_USER.
> 
> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>

Pravin or some other OVS expert, please review this.
Pravin Shelar June 2, 2016, 7:49 p.m. UTC | #2
On Tue, May 31, 2016 at 6:41 AM, Zhang Shengju
<zhangshengju@cmss.chinamobile.com> wrote:
> Set name_assign_type of internal port to NET_NAME_USER.
>
> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
> ---
>  net/openvswitch/vport-internal_dev.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c
> index 2ee48e4..434e04c 100644
> --- a/net/openvswitch/vport-internal_dev.c
> +++ b/net/openvswitch/vport-internal_dev.c
> @@ -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);

Looks good.
Acked-by: Pravin B Shelar <pshelar@ovn.org>
David Miller June 2, 2016, 10:06 p.m. UTC | #3
From: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Date: Tue, 31 May 2016 13:41:02 +0000

> Set name_assign_type of internal port to NET_NAME_USER.
> 
> Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>

Applied, thanks.
diff mbox

Patch

diff --git a/net/openvswitch/vport-internal_dev.c b/net/openvswitch/vport-internal_dev.c
index 2ee48e4..434e04c 100644
--- a/net/openvswitch/vport-internal_dev.c
+++ b/net/openvswitch/vport-internal_dev.c
@@ -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;