Symbol: fib_nh
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
230
struct fib_nh *fib_nh,
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
243
if (ldev->pf[i].netdev == fib_nh->fib_nh_dev)
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
263
struct fib_nh *fib_nh;
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
276
fib_nh = fib_work->fnh_info.fib_nh;
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
279
fib_work->fnh_info.fib_nh,
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
280
fib_nh->nh_parent);
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
281
fib_info_put(fib_work->fnh_info.fib_nh->nh_parent);
drivers/net/ethernet/mellanox/mlx5/core/lag/mp.c
349
fib_info_hold(fib_work->fnh_info.fib_nh->nh_parent);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
3053
struct fib_nh *fib_nh;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4053
nh->key.fib_nh->fib_nh_flags |= RTNH_F_OFFLOAD;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4055
nh->key.fib_nh->fib_nh_flags &= ~RTNH_F_OFFLOAD;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4524
const struct fib_nh *fib_nh,
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4527
struct net_device *dev = fib_nh->fib_nh_dev;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4530
fib_nh->nh_parent->fib_type == RTN_UNICAST &&
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4610
struct fib_nh *fib_nh)
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4612
struct net_device *dev = fib_nh->fib_nh_dev;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4617
nh->key.fib_nh = fib_nh;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4619
nh->nh_weight = fib_nh->fib_nh_weight;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4623
memcpy(&nh->gw_addr, &fib_nh->fib_nh_gw4, sizeof(fib_nh->fib_nh_gw4));
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4642
fib_nh->fib_nh_flags & RTNH_F_LINKDOWN) {
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4672
unsigned long event, struct fib_nh *fib_nh)
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4677
key.fib_nh = fib_nh;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
4684
mlxsw_sp_nexthop_type_init(mlxsw_sp, nh, fib_nh->fib_nh_dev);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
5765
const struct fib_nh *nh = fib_info_nh(fi, 0);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
5788
struct fib_nh *fib_nh;
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
5791
fib_nh = fib_info_nh(nh_grp->ipv4.fi, i);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
5792
err = mlxsw_sp_nexthop4_init(mlxsw_sp, nh_grp, nh, fib_nh);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
7891
fib_work->fnh_info.fib_nh);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
7892
fib_info_put(fib_work->fnh_info.fib_nh->nh_parent);
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c
8011
fib_info_hold(fib_work->fnh_info.fib_nh->nh_parent);
drivers/net/ethernet/rocker/rocker_ofdpa.c
2272
const struct fib_nh *nh;
drivers/net/ethernet/rocker/rocker_ofdpa.c
2726
struct fib_nh *nh;
drivers/net/ethernet/rocker/rocker_ofdpa.c
2749
struct fib_nh *nh;
drivers/net/ethernet/rocker/rocker_ofdpa.c
2777
struct fib_nh *nh;
include/net/ip_fib.h
162
struct fib_nh fib_nh[] __counted_by(fib_nhs);
include/net/ip_fib.h
241
struct fib_nh *fib_nh;
include/net/ip_fib.h
575
int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
include/net/ip_fib.h
582
int fib_nh_init(struct net *net, struct fib_nh *fib_nh,
include/net/ip_fib.h
585
void fib_nh_release(struct net *net, struct fib_nh *fib_nh);
include/net/ip_fib.h
607
struct fib_nh *nh;
include/net/ip_fib.h
609
nh = container_of(nhc, struct fib_nh, nh_common);
include/net/nexthop.h
402
BUILD_BUG_ON(offsetof(struct fib_nh, nh_common) != 0);
include/net/nexthop.h
494
return &fi->fib_nh[nhsel].nh_common;
include/net/nexthop.h
498
static inline struct fib_nh *fib_info_nh(struct fib_info *fi, int nhsel)
include/net/nexthop.h
502
return &fi->fib_nh[nhsel];
include/net/nexthop.h
69
struct fib_nh fib_nh;
include/net/route.h
54
struct fib_nh;
net/ipv4/fib_semantics.c
1074
static int fib_check_nh_v6_gw(struct net *net, struct fib_nh *nh,
net/ipv4/fib_semantics.c
1143
static int fib_check_nh_v4_gw(struct net *net, struct fib_nh *nh, u32 table,
net/ipv4/fib_semantics.c
1237
static int fib_check_nh_nongw(struct net *net, struct fib_nh *nh,
net/ipv4/fib_semantics.c
1272
int fib_check_nh(struct net *net, struct fib_nh *nh, u32 table, u8 scope,
net/ipv4/fib_semantics.c
1290
struct fib_nh *nh;
net/ipv4/fib_semantics.c
1296
nh = container_of(nhc, struct fib_nh, nh_common);
net/ipv4/fib_semantics.c
1313
struct fib_nh *nh;
net/ipv4/fib_semantics.c
1315
nh = container_of(nhc, struct fib_nh, nh_common);
net/ipv4/fib_semantics.c
1401
fi = kzalloc_flex(*fi, fib_nh, nhs);
net/ipv4/fib_semantics.c
1441
err = fib_nh_init(net, fi->fib_nh, cfg, 1, extack);
net/ipv4/fib_semantics.c
1478
struct fib_nh *nh = fi->fib_nh;
net/ipv4/fib_semantics.c
1783
struct fib_nh *nh;
net/ipv4/fib_semantics.c
1785
nh = container_of(nhc, struct fib_nh, nh_common);
net/ipv4/fib_semantics.c
1843
static int call_fib_nh_notifiers(struct fib_nh *nh,
net/ipv4/fib_semantics.c
1848
.fib_nh = nh,
net/ipv4/fib_semantics.c
1913
struct fib_nh *nh;
net/ipv4/fib_semantics.c
1934
struct fib_nh *nh;
net/ipv4/fib_semantics.c
2082
struct fib_nh *nh;
net/ipv4/fib_semantics.c
212
void fib_nh_release(struct net *net, struct fib_nh *fib_nh)
net/ipv4/fib_semantics.c
2138
static bool fib_good_nh(const struct fib_nh *nh)
net/ipv4/fib_semantics.c
215
if (fib_nh->nh_tclassid)
net/ipv4/fib_semantics.c
218
fib_nh_common_release(&fib_nh->nh_common);
net/ipv4/fib_semantics.c
276
const struct fib_nh *onh;
net/ipv4/fib_semantics.c
479
struct fib_nh *nh;
net/ipv4/fib_semantics.c
59
int nhsel; const struct fib_nh *nh; \
net/ipv4/fib_semantics.c
60
for (nhsel = 0, nh = (fi)->fib_nh; \
net/ipv4/fib_semantics.c
645
int fib_nh_init(struct net *net, struct fib_nh *nh,
net/ipv4/fib_semantics.c
65
int nhsel; struct fib_nh *nexthop_nh; \
net/ipv4/fib_semantics.c
66
for (nhsel = 0, nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
net/ipv4/fib_semantics.c
720
struct fib_nh *nh;
net/ipv4/fib_semantics.c
75
int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
net/ipv4/fib_semantics.c
80
struct fib_nh *nexthop_nh = (struct fib_nh *)((fi)->fib_nh); \
net/ipv4/fib_semantics.c
880
const struct fib_nh *nh,
net/ipv4/fib_semantics.c
924
struct fib_nh *nh;
net/ipv4/nexthop.c
1032
if (nhi->fib_nh.fib_nh_gw_family)
net/ipv4/nexthop.c
1379
static bool ipv4_good_nh(const struct fib_nh *nh)
net/ipv4/nexthop.c
1402
return ipv4_good_nh(&nhi->fib_nh);
net/ipv4/nexthop.c
2824
struct fib_nh *fib_nh = &nhi->fib_nh;
net/ipv4/nexthop.c
2837
err = fib_nh_init(net, fib_nh, &fib_cfg, 1, extack);
net/ipv4/nexthop.c
2839
fib_nh_release(net, fib_nh);
net/ipv4/nexthop.c
2847
err = fib_check_nh(net, fib_nh, tb_id, 0, extack);
net/ipv4/nexthop.c
2849
nh->nh_flags = fib_nh->fib_nh_flags;
net/ipv4/nexthop.c
2850
fib_info_update_nhc_saddr(net, &fib_nh->nh_common,
net/ipv4/nexthop.c
2851
!fib_nh->fib_nh_scope ? 0 : fib_nh->fib_nh_scope - 1);
net/ipv4/nexthop.c
2853
fib_nh_release(net, fib_nh);
net/ipv4/nexthop.c
510
fib_nh_release(nh->net, &nhi->fib_nh);
net/ipv4/nexthop.c
920
struct fib_nh *fib_nh;
net/ipv4/nexthop.c
971
fib_nh = &nhi->fib_nh;
net/ipv4/nexthop.c
972
if (fib_nh->fib_nh_gw_family &&
net/ipv4/nexthop.c
973
nla_put_be32(skb, NHA_GATEWAY, fib_nh->fib_nh_gw4))
net/ipv4/route.c
1611
struct fib_nh *nh;
net/ipv4/route.c
1613
nh = container_of(nhc, struct fib_nh, nh_common);