netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: ipv4: distinguish EHOSTUNREACH from the ENETUNREACH
@ 2017-08-14 20:35 Daniel Walker
  0 siblings, 0 replies; only message in thread
From: Daniel Walker @ 2017-08-14 20:35 UTC (permalink / raw)
  To: Duan Jiong, David S. Miller, Poornima Ranganath,
	xe-linux-external, netdev

Hi,


It seems like commit cd0f0b is trying to add back these two errors 
values into ip_route_input_slow(). However, if you follow the code path 
further down you get to the two exit points of this function,

in net/ipv4/route.c:ip_route_input_slow()

if (rt_cache_valid(rth)) {
	skb_dst_set_noref(skb, &rth->dst);
	err = 0;
	goto out;
}

and

skb_dst_set(skb, &rth->dst);
err = 0;
goto out;

Both of these set "err" variable to 0. This effective destroys the 
return value which the patch seems to be adding. Am I missing something 
here?


Thanks,

Daniel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-08-14 20:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-14 20:35 ipv4: distinguish EHOSTUNREACH from the ENETUNREACH Daniel Walker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).