summaryrefslogtreecommitdiffstats
path: root/net/ipv4/metrics.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-04-02 14:11:56 -0700
committerDavid S. Miller <davem@davemloft.net>2019-04-03 21:50:20 -0700
commitb0f60193632e4eab4c9663101bb435dd7bc27ae8 (patch)
treec979313a61f0acd2d0b6a8eb4b7b1336a70c34ce /net/ipv4/metrics.c
parenteba618abacade71669eb67c3360eecfee810cc88 (diff)
downloadlinux-b0f60193632e4eab4c9663101bb435dd7bc27ae8.tar.bz2
ipv4: Refactor nexthop attributes in fib_dump_info
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: David Ahern <dsahern@gmail.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/metrics.c')
0 files changed, 0 insertions, 0 deletions