diff mbox series

sit: set name of device back to struct parms

Message ID 20210602103626.26873-1-zhangkaiheb@126.com
State New
Headers show
Series sit: set name of device back to struct parms | expand

Commit Message

zhang kai June 2, 2021, 10:36 a.m. UTC
addrconf_set_sit_dstaddr will use parms->name.

Signed-off-by: zhang kai <zhangkaiheb@126.com>
---
 net/ipv6/sit.c | 3 +++
 1 file changed, 3 insertions(+)

Comments

patchwork-bot+netdevbpf@kernel.org June 3, 2021, 9 p.m. UTC | #1
Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Wed,  2 Jun 2021 18:36:26 +0800 you wrote:
> addrconf_set_sit_dstaddr will use parms->name.

> 

> Signed-off-by: zhang kai <zhangkaiheb@126.com>

> ---

>  net/ipv6/sit.c | 3 +++

>  1 file changed, 3 insertions(+)


Here is the summary with links:
  - sit: set name of device back to struct parms
    https://git.kernel.org/netdev/net/c/261ba78cc364

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
diff mbox series

Patch

diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
index 71b57bdb1..e0a39b0bb 100644
--- a/net/ipv6/sit.c
+++ b/net/ipv6/sit.c
@@ -271,6 +271,9 @@  static struct ip_tunnel *ipip6_tunnel_locate(struct net *net,
 	if (ipip6_tunnel_create(dev) < 0)
 		goto failed_free;
 
+	if (!parms->name[0])
+		strcpy(parms->name, dev->name);
+
 	return nt;
 
 failed_free: