[PATCH net-next 4/9] net: Move rth handling from ip_route_input_slow to helper

2015-09-23 Thread David Ahern
Move the rth lookup and allocation from ip_route_input_slow into a helper function. Code move only; no operational change intended. Signed-off-by: David Ahern --- net/ipv4/route.c | 102 +++ 1 file changed, 58 insertions(+), 44 deletions(-) di

Re: [PATCH net-next 4/9] net: Move rth handling from ip_route_input_slow to helper

2015-09-22 Thread David Ahern
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 n

Re: [PATCH net-next 4/9] net: Move rth handling from ip_route_input_slow to helper

2015-09-22 Thread Alexander Duyck
On 09/22/2015 03:55 PM, David Ahern wrote: Move the rth lookup and allocation from ip_route_input_slow into a helper function. Code move only; no operational change intended. Signed-off-by: David Ahern --- net/ipv4/route.c | 104 --- 1 file

[PATCH net-next 4/9] net: Move rth handling from ip_route_input_slow to helper

2015-09-22 Thread David Ahern
Move the rth lookup and allocation from ip_route_input_slow into a helper function. Code move only; no operational change intended. Signed-off-by: David Ahern --- net/ipv4/route.c | 104 --- 1 file changed, 60 insertions(+), 44 deletions(-) di