summaryrefslogtreecommitdiff
path: root/include/net/nexthop.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-05-23 23:03:49 +0100
committerMark Brown <broonie@kernel.org>2023-05-23 23:03:49 +0100
commit90d0d6009c0f6b0693ac58096c655a2df61e0d50 (patch)
treeb076f02b48dc57f295981e27965bb28e571b5cbc /include/net/nexthop.h
parent53632462666c378774f7665960f0ab67ac22f77a (diff)
parent44c026a73be8038f03dbdeef028b642880cf1511 (diff)
regmap: Merge up v6.4-rc3
Merge up v6.4-rc3 to get fixes which make my CI more stable.
Diffstat (limited to 'include/net/nexthop.h')
-rw-r--r--include/net/nexthop.h23
1 files changed, 0 insertions, 23 deletions
diff --git a/include/net/nexthop.h b/include/net/nexthop.h
index 9fa291a04621..2b12725de9c0 100644
--- a/include/net/nexthop.h
+++ b/include/net/nexthop.h
@@ -497,29 +497,6 @@ static inline struct fib6_nh *nexthop_fib6_nh(struct nexthop *nh)
return NULL;
}
-/* Variant of nexthop_fib6_nh().
- * Caller should either hold rcu_read_lock(), or RTNL.
- */
-static inline struct fib6_nh *nexthop_fib6_nh_bh(struct nexthop *nh)
-{
- struct nh_info *nhi;
-
- if (nh->is_group) {
- struct nh_group *nh_grp;
-
- nh_grp = rcu_dereference_rtnl(nh->nh_grp);
- nh = nexthop_mpath_select(nh_grp, 0);
- if (!nh)
- return NULL;
- }
-
- nhi = rcu_dereference_rtnl(nh->nh_info);
- if (nhi->family == AF_INET6)
- return &nhi->fib6_nh;
-
- return NULL;
-}
-
static inline struct net_device *fib6_info_nh_dev(struct fib6_info *f6i)
{
struct fib6_nh *fib6_nh;