ipv6: datagram: Refactor flowi6 init codes to a new function
authorMartin KaFai Lau <kafai@fb.com>
Mon, 11 Apr 2016 22:29:34 +0000 (15:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 20:29:49 +0000 (16:29 -0400)
commit80fbdb208f37740774652ba095a5b2045205ed59
treef4c723c3c3d042a563df7b515f06f8bea5cf8493
parentf1d0540db6a21395a58268f4392c7420ebae8c1d
ipv6: datagram: Refactor flowi6 init codes to a new function

Move flowi6 init codes for connected datagram sk to a newly created
function ip6_datagram_flow_key_init().

Notes:
1. fl6_flowlabel is used instead of fl6.flowlabel in __ip6_datagram_connect
2. ipv6_addr_is_multicast(&fl6->daddr) is used instead of
   (addr_type & IPV6_ADDR_MULTICAST) in ip6_datagram_flow_key_init()

This new function will be reused during pmtu update in the later patch.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: Cong Wang <xiyou.wangcong@gmail.com>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Wei Wang <weiwan@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/datagram.c