Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1671858 > unrolled thread

[PATCH net-next 2/2] ip6mr: restrict mroute6 "queue full" warning to related error values

Started byJulien Gomes <julien@arista.com>
First post2017-06-21 20:00 +0200
Last post2017-06-21 20:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH net-next 2/2] ip6mr: restrict mroute6 "queue full" warning to related error values Julien Gomes <julien@arista.com> - 2017-06-21 20:00 +0200

#1671858 — [PATCH net-next 2/2] ip6mr: restrict mroute6 "queue full" warning to related error values

FromJulien Gomes <julien@arista.com>
Date2017-06-21 20:00 +0200
Subject[PATCH net-next 2/2] ip6mr: restrict mroute6 "queue full" warning to related error values
Message-ID<tUS54-VR-9@gated-at.bofh.it>
When sending a cache report on mroute6_sk, mroute6 will emit a
"pending queue full" warning for every error value returned by
sock_queue_rcv_skb().
This warning can be misleading, for example on the EPERM error value
that sk_filter() can return.

Restricting this warning to only ENOMEM or ENOBUFS seems more
appropriate.

Signed-off-by: Julien Gomes <julien@arista.com>
---
 net/ipv6/ip6mr.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index 7454850f2098..62fe5fd64f22 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1215,7 +1215,8 @@ static int ip6mr_cache_report(struct mr6_table *mrt, struct sk_buff *pkt,
 	 */
 	ret = sock_queue_rcv_skb(mrt->mroute6_sk, skb);
 	if (ret < 0) {
-		net_warn_ratelimited("mroute6: pending queue full, dropping entries\n");
+		if (ret == -ENOMEM || ret == -ENOBUFS)
+			net_warn_ratelimited("mroute6: pending queue full, dropping entries\n");
 		kfree_skb(skb);
 	}
 
-- 
2.13.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web