Skip to content

Commit 3b290a3

Browse files
dsahernborkmann
authored andcommitted
net/ipv6: Rename rt6_multipath_select
Rename rt6_multipath_select to fib6_multipath_select and export it. A later patch wants access to it similar to IPv4's fib_select_path. Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
1 parent 6454743 commit 3b290a3

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

include/net/ip6_fib.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ struct dst_entry *fib6_rule_lookup(struct net *net, struct flowi6 *fl6,
376376
const struct sk_buff *skb,
377377
int flags, pol_lookup_t lookup);
378378

379+
struct fib6_info *fib6_multipath_select(const struct net *net,
380+
struct fib6_info *match,
381+
struct flowi6 *fl6, int oif,
382+
const struct sk_buff *skb, int strict);
383+
379384
struct fib6_node *fib6_node_lookup(struct fib6_node *root,
380385
const struct in6_addr *daddr,
381386
const struct in6_addr *saddr);

net/ipv6/route.c

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,11 @@ static bool rt6_check_expired(const struct rt6_info *rt)
419419
return false;
420420
}
421421

422-
static struct fib6_info *rt6_multipath_select(const struct net *net,
423-
struct fib6_info *match,
424-
struct flowi6 *fl6, int oif,
425-
const struct sk_buff *skb,
426-
int strict)
422+
struct fib6_info *fib6_multipath_select(const struct net *net,
423+
struct fib6_info *match,
424+
struct flowi6 *fl6, int oif,
425+
const struct sk_buff *skb,
426+
int strict)
427427
{
428428
struct fib6_info *sibling, *next_sibling;
429429

@@ -1068,8 +1068,9 @@ static struct rt6_info *ip6_pol_route_lookup(struct net *net,
10681068
f6i = rt6_device_match(net, f6i, &fl6->saddr,
10691069
fl6->flowi6_oif, flags);
10701070
if (f6i->fib6_nsiblings && fl6->flowi6_oif == 0)
1071-
f6i = rt6_multipath_select(net, f6i, fl6,
1072-
fl6->flowi6_oif, skb, flags);
1071+
f6i = fib6_multipath_select(net, f6i, fl6,
1072+
fl6->flowi6_oif, skb,
1073+
flags);
10731074
}
10741075
if (f6i == net->ipv6.fib6_null_entry) {
10751076
fn = fib6_backtrack(fn, &fl6->saddr);
@@ -1824,7 +1825,7 @@ struct rt6_info *ip6_pol_route(struct net *net, struct fib6_table *table,
18241825
redo_rt6_select:
18251826
f6i = rt6_select(net, fn, oif, strict);
18261827
if (f6i->fib6_nsiblings)
1827-
f6i = rt6_multipath_select(net, f6i, fl6, oif, skb, strict);
1828+
f6i = fib6_multipath_select(net, f6i, fl6, oif, skb, strict);
18281829
if (f6i == net->ipv6.fib6_null_entry) {
18291830
fn = fib6_backtrack(fn, &fl6->saddr);
18301831
if (fn)

0 commit comments

Comments
 (0)