• David Ahern's avatar
    ipv4: Refactor nexthop attributes in fib_dump_info · b0f60193
    David Ahern authored
    Similar to ipv6, move addition of nexthop attributes to dump
    message into helpers that are called for both single path and
    multipath routes. Align the new helpers to the IPv6 variant
    which most notably means computing the flags argument based on
    settings in nh_flags.
    
    The RTA_FLOW argument is unique to IPv4, so it is appended after
    the new fib_nexthop_info helper. The intent of a later patch is to
    make both fib_nexthop_info and fib_add_nexthop usable for both IPv4
    and IPv6. This patch is stepping stone in that direction.
    Signed-off-by: default avatarDavid Ahern <dsahern@gmail.com>
    Acked-by: default avatarMartin KaFai Lau <kafai@fb.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    b0f60193
fib_semantics.c 43.9 KB