tcp: use inet6_csk_route_req() in tcp_v6_send_synack()
authorNeal Cardwell <ncardwell@google.com>
Thu, 28 Jun 2012 12:34:20 +0000 (12:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2012 00:53:50 +0000 (17:53 -0700)
commit9494218fbae2f88bd3f9b887714734abfdf38bab
treeb92ee490d2b399412c49ed6b193c747b36683499
parent3840a06e6046aaee95f33a120499d2dc8c054b9d
tcp: use inet6_csk_route_req() in tcp_v6_send_synack()

With the recent change (earlier in this patch series) to set
flowi6_oif to treq->iif in inet6_csk_route_req(), the dst lookup in
these two functions is now identical, so tcp_v6_send_synack() can now
just call inet6_csk_route_req(), to reduce code duplication and keep
things closer to the IPv4 side, which is structured this way.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/tcp_ipv6.c