All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [RFC] ipv4: Do not cache routing failures due to disabled forwarding.
@ 2014-09-13 12:59 Nicolas Cavallari
  2014-09-15 10:28 ` [PATCHv2] " Nicolas Cavallari
  0 siblings, 1 reply; 9+ messages in thread
From: Nicolas Cavallari @ 2014-09-13 12:59 UTC (permalink / raw)
  To: netdev

[Resending to netdev instead of linux-netdev, sorry again.]

For whatever reason, I didn't receive your reply and I'm not subscribed
to the list but I saw it on archives.

> 	Two alternatives are possible:
> 
> 1. set res.fi = NULL after 'no_route:' label
> 
> or better
> 
> 2. set do_cache = false after 'no_route:' label,
> then instead of 'goto local_input;' jump to a new
> label 'create_rt:' just before rt_dst_alloc.
> 
> 	Not sure, they may generate less code in the fast path.

If I implement the first alternative, GCC will optimize it to the
second. And it does not do that same optimization with my patch...

Will submit alternative 1 if there are no further issues/comments.

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

end of thread, other threads:[~2014-09-23 15:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-13 12:59 [RFC] ipv4: Do not cache routing failures due to disabled forwarding Nicolas Cavallari
2014-09-15 10:28 ` [PATCHv2] " Nicolas Cavallari
2014-09-16 18:54   ` David Miller
2014-09-16 19:52     ` Nicolas Cavallari
2014-09-23  8:34       ` Nicolas Cavallari
2014-09-23 15:28         ` David Miller
2014-09-18  5:17   ` Julian Anastasov
2014-09-18  6:43     ` Nicolas Cavallari
2014-09-18  8:04       ` Julian Anastasov

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.