[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <54143FB2.9000600@green-communications.fr>
Date: Sat, 13 Sep 2014 14:59:30 +0200
From: Nicolas Cavallari <nicolas.cavallari@...en-communications.fr>
To: netdev@...r.kernel.org
Subject: Re: [RFC] ipv4: Do not cache routing failures due to disabled forwarding.
[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.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists