Re: [PATCH net-next 10/15] ipv4: Cache net in ip_build_and_send_pkt and ip_queue_xmit

2015-10-06 Thread Eric Dumazet
On Tue, 2015-10-06 at 22:26 -0500, Eric W. Biederman wrote: > So what I am really reading it for is ip_local_out which I change to > take a struct net a few patches later in the series. The patches that > changes everything is noticably cleaner and easier to review with these > couple of patches

Re: [PATCH net-next 10/15] ipv4: Cache net in ip_build_and_send_pkt and ip_queue_xmit

2015-10-06 Thread Eric W. Biederman
Eric Dumazet writes: > On Tue, 2015-10-06 at 13:53 -0500, Eric W. Biederman wrote: >> Compute net and store it in a variable in the functions >> ip_build_and_send_pkt and ip_queue_xmit so that it does not need to be >> recomputed next time it is needed. >> >> Signed-off-by: "Eric W. Biederman"

Re: [PATCH net-next 10/15] ipv4: Cache net in ip_build_and_send_pkt and ip_queue_xmit

2015-10-06 Thread Eric Dumazet
On Tue, 2015-10-06 at 13:53 -0500, Eric W. Biederman wrote: > Compute net and store it in a variable in the functions > ip_build_and_send_pkt and ip_queue_xmit so that it does not need to be > recomputed next time it is needed. > > Signed-off-by: "Eric W. Biederman" > --- > net/ipv4/ip_output.c

[PATCH net-next 10/15] ipv4: Cache net in ip_build_and_send_pkt and ip_queue_xmit

2015-10-06 Thread Eric W. Biederman
Compute net and store it in a variable in the functions ip_build_and_send_pkt and ip_queue_xmit so that it does not need to be recomputed next time it is needed. Signed-off-by: "Eric W. Biederman" --- net/ipv4/ip_output.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --g