All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sit: set name of device back to struct parms
@ 2021-06-02 10:36 zhang kai
  2021-06-03 21:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: zhang kai @ 2021-06-02 10:36 UTC (permalink / raw)
  To: davem, yoshfuji, dsahern, kuba, netdev, linux-kernel; +Cc: zhang kai

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(+)

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sit: set name of device back to struct parms
  2021-06-02 10:36 [PATCH] sit: set name of device back to struct parms zhang kai
@ 2021-06-03 21:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-03 21:00 UTC (permalink / raw)
  To: zhang kai; +Cc: davem, yoshfuji, dsahern, kuba, netdev, linux-kernel

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-06-03 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02 10:36 [PATCH] sit: set name of device back to struct parms zhang kai
2021-06-03 21:00 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.