ipv4: Cache net in ip_build_and_send_pkt and ip_queue_xmit
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 7 Oct 2015 21:48:42 +0000 (16:48 -0500)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Oct 2015 11:26:59 +0000 (04:26 -0700)
commit77589ce0f84dd99cc946fd71fe6fb44dd8220d0a
tree27c8a96e43cebfbe89c5cc8e3961c412137b8b36
parentf859b0f662493e4f53d462f5759e3c4302933077
ipv4: Cache net in ip_build_and_send_pkt and ip_queue_xmit

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" <ebiederm@xmission.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_output.c