Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ip6_tunnel: Reduce log level in ip6_tnl_err() to debug

Currently error log messages in ip6_tnl_err are printed at 'warn'
level. This is different to other tunnel types which don't print
any messages. These log messages don't provide any information that
couldn't be deduced with networking tools. Also it can be annoying
to have one end of the tunnel go down and have the logs fill with
pointless messages such as "Path to destination invalid or inactive!".

This patch reduces the log level of these messages to 'dbg' level to
bring the visible behaviour into line with other tunnel types.

Signed-off-by: Matt Bennett <matt.bennett@alliedtelesis.co.nz>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Matt Bennett and committed by
David S. Miller
17a10c92 deccbe80

+8 -8
+8 -8
net/ipv6/ip6_tunnel.c
··· 569 569 struct ipv6_tlv_tnl_enc_lim *tel; 570 570 __u32 mtu; 571 571 case ICMPV6_DEST_UNREACH: 572 - net_warn_ratelimited("%s: Path to destination invalid or inactive!\n", 573 - t->parms.name); 572 + net_dbg_ratelimited("%s: Path to destination invalid or inactive!\n", 573 + t->parms.name); 574 574 rel_msg = 1; 575 575 break; 576 576 case ICMPV6_TIME_EXCEED: 577 577 if ((*code) == ICMPV6_EXC_HOPLIMIT) { 578 - net_warn_ratelimited("%s: Too small hop limit or routing loop in tunnel!\n", 579 - t->parms.name); 578 + net_dbg_ratelimited("%s: Too small hop limit or routing loop in tunnel!\n", 579 + t->parms.name); 580 580 rel_msg = 1; 581 581 } 582 582 break; ··· 588 588 if (teli && teli == *info - 2) { 589 589 tel = (struct ipv6_tlv_tnl_enc_lim *) &skb->data[teli]; 590 590 if (tel->encap_limit == 0) { 591 - net_warn_ratelimited("%s: Too small encapsulation limit or routing loop in tunnel!\n", 592 - t->parms.name); 591 + net_dbg_ratelimited("%s: Too small encapsulation limit or routing loop in tunnel!\n", 592 + t->parms.name); 593 593 rel_msg = 1; 594 594 } 595 595 } else { 596 - net_warn_ratelimited("%s: Recipient unable to parse tunneled packet!\n", 597 - t->parms.name); 596 + net_dbg_ratelimited("%s: Recipient unable to parse tunneled packet!\n", 597 + t->parms.name); 598 598 } 599 599 break; 600 600 case ICMPV6_PKT_TOOBIG: