[PATCH] sit: set name of device back to struct parms

Subsystems: networking [general], the rest

STALE1887d

2 messages, 2 authors, 2021-06-03 · open the first message on its own page

[PATCH] sit: set name of device back to struct parms

From: zhang kai <hidden>
Date: 2021-06-02 11:08:04

addrconf_set_sit_dstaddr will use parms->name.

Signed-off-by: zhang kai <redacted>
---
 net/ipv6/sit.c | 3 +++
 1 file changed, 3 insertions(+)
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:
-- 
2.17.1

Re: [PATCH] sit: set name of device back to struct parms

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-06-03 21:00:10

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 <redacted>
---
 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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help