All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch net] ipv6: do not create neighbor entries for local delivery
@ 2013-01-30  8:26 Jiri Pirko
  2013-01-31  1:26 ` David Miller
  2013-08-08 18:45 ` Debabrata Banerjee
  0 siblings, 2 replies; 17+ messages in thread
From: Jiri Pirko @ 2013-01-30  8:26 UTC (permalink / raw)
  To: netdev; +Cc: davem, kuznet, jmorris, yoshfuji, kaber, mleitner

From: Marcelo Ricardo Leitner <mleitner@redhat.com>

They will be created at output, if ever needed. This avoids creating
empty neighbor entries when TPROXYing/Forwarding packets for addresses
that are not even directly reachable.

Note that IPv4 already handles it this way. No neighbor entries are
created for local input.

Tested by myself and customer.

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: Marcelo Ricardo Leitner <mleitner@redhat.com>
---
 net/ipv6/route.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index e229a3b..363d8b7 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -928,7 +928,7 @@ restart:
 	dst_hold(&rt->dst);
 	read_unlock_bh(&table->tb6_lock);
 
-	if (!rt->n && !(rt->rt6i_flags & RTF_NONEXTHOP))
+	if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP | RTF_LOCAL)))
 		nrt = rt6_alloc_cow(rt, &fl6->daddr, &fl6->saddr);
 	else if (!(rt->dst.flags & DST_HOST))
 		nrt = rt6_alloc_clone(rt, &fl6->daddr);
-- 
1.8.1

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

end of thread, other threads:[~2013-08-13 12:49 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-30  8:26 [patch net] ipv6: do not create neighbor entries for local delivery Jiri Pirko
2013-01-31  1:26 ` David Miller
2013-08-08 18:45 ` Debabrata Banerjee
2013-08-08 19:01   ` Hannes Frederic Sowa
2013-08-08 19:02     ` Marcelo Ricardo Leitner
2013-08-08 19:06       ` Hannes Frederic Sowa
2013-08-08 19:11         ` Marcelo Ricardo Leitner
2013-08-08 19:16           ` Hannes Frederic Sowa
2013-08-08 19:23             ` Marcelo Ricardo Leitner
2013-08-08 19:19     ` Debabrata Banerjee
2013-08-08 19:47   ` Hannes Frederic Sowa
2013-08-08 20:16     ` Hannes Frederic Sowa
2013-08-08 20:45       ` Marcelo Ricardo Leitner
2013-08-08 20:46         ` Marcelo Ricardo Leitner
2013-08-12 18:09       ` Marcelo Ricardo Leitner
2013-08-12 22:26         ` Hannes Frederic Sowa
2013-08-13 12:48           ` Marcelo Ricardo Leitner

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.