* [PATCH] ipv6: Don't send rs packets to the interface of ARPHRD_TUNNEL
@ 2022-04-29 5:38 jianghaoran
2022-05-02 23:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: jianghaoran @ 2022-04-29 5:38 UTC (permalink / raw)
To: davem; +Cc: yoshfuji, dsahern, kuba, pabeni, netdev, linux-kernel
ARPHRD_TUNNEL interface can't process rs packets
and will generate TX errors
ex:
ip tunnel add ethn mode ipip local 192.168.1.1 remote 192.168.1.2
ifconfig ethn x.x.x.x
ethn: flags=209<UP,POINTOPOINT,RUNNING,NOARP> mtu 1480
inet x.x.x.x netmask 255.255.255.255 destination x.x.x.x
inet6 fe80::5efe:ac1e:3cdb prefixlen 64 scopeid 0x20<link>
tunnel txqueuelen 1000 (IPIP Tunnel)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 3 dropped 0 overruns 0 carrier 0 collisions 0
Signed-off-by: jianghaoran <jianghaoran@kylinos.cn>
---
net/ipv6/addrconf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index b22504176588..c1039346a5de 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4201,7 +4201,8 @@ static void addrconf_dad_completed(struct inet6_ifaddr *ifp, bool bump_id,
send_rs = send_mld &&
ipv6_accept_ra(ifp->idev) &&
ifp->idev->cnf.rtr_solicits != 0 &&
- (dev->flags&IFF_LOOPBACK) == 0;
+ (dev->flags & IFF_LOOPBACK) == 0 &&
+ (dev->type != ARPHRD_TUNNEL);
read_unlock_bh(&ifp->idev->lock);
/* While dad is in progress mld report's source address is in6_addrany.
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ipv6: Don't send rs packets to the interface of ARPHRD_TUNNEL
2022-04-29 5:38 [PATCH] ipv6: Don't send rs packets to the interface of ARPHRD_TUNNEL jianghaoran
@ 2022-05-02 23:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-05-02 23:10 UTC (permalink / raw)
To: jianghaoran; +Cc: davem, yoshfuji, dsahern, kuba, pabeni, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 29 Apr 2022 13:38:02 +0800 you wrote:
> ARPHRD_TUNNEL interface can't process rs packets
> and will generate TX errors
>
> ex:
> ip tunnel add ethn mode ipip local 192.168.1.1 remote 192.168.1.2
> ifconfig ethn x.x.x.x
>
> [...]
Here is the summary with links:
- ipv6: Don't send rs packets to the interface of ARPHRD_TUNNEL
https://git.kernel.org/netdev/net-next/c/b52e1cce31ca
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:[~2022-05-02 23:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 5:38 [PATCH] ipv6: Don't send rs packets to the interface of ARPHRD_TUNNEL jianghaoran
2022-05-02 23:10 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).