[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <56021764.1070701@cumulusnetworks.com>
Date: Tue, 22 Sep 2015 21:07:16 -0600
From: David Ahern <dsa@...ulusnetworks.com>
To: Alexander Duyck <alexander.duyck@...il.com>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next 4/9] net: Move rth handling from
ip_route_input_slow to helper
On 9/22/15 8:33 PM, Alexander Duyck wrote:
> Why pass loopback_dev instead of just passing the net pointer? Seems
> like in the path below there are cases where you end up not needing to
> dereference it and it might be worth the effort to avoid dereferencing
> it if you don't need to.
>
> Same thing for nopolicy. Why not just pass the in_dev pointer and
> handle getting the policy if you need it.
Sure, I was passing in what was needed but I get your point. If the
cache version is valid it is an unnecessary dereference.
--
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