• Martin KaFai Lau's avatar
    ipv6: datagram: Refactor flowi6 init codes to a new function · 80fbdb20
    Martin KaFai Lau authored
    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: default avatarMartin 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: default avatarDavid S. Miller <davem@davemloft.net>
    80fbdb20
datagram.c 23.6 KB