Home
last modified time | relevance | path

Searched refs:nhe (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dneigh.c59 kfree_rcu(nhe, rcu); in mlx5e_rep_neigh_entry_release()
71 for (next = nhe ? in mlx5e_get_next_nhe()
89 if (nhe) in mlx5e_get_next_nhe()
107 while ((nhe = mlx5e_get_next_nhe(rpriv, nhe)) != NULL) in mlx5e_rep_neigh_stats_work()
130 struct mlx5e_neigh_hash_entry *nhe = update_work->nhe; in mlx5e_rep_neigh_update() local
189 if (!nhe) { in mlx5e_alloc_neigh_update_work()
197 update_work->nhe = nhe; in mlx5e_alloc_neigh_update_work()
369 return nhe && mlx5e_rep_neigh_entry_hold(nhe) ? nhe : NULL; in mlx5e_rep_neigh_entry_lookup()
379 *nhe = kzalloc(sizeof(**nhe), GFP_KERNEL); in mlx5e_rep_neigh_entry_create()
380 if (!*nhe) in mlx5e_rep_neigh_entry_create()
[all …]
H A Dtc.c41 struct mlx5e_neigh_hash_entry *nhe; in mlx5e_rep_encap_entry_attach() local
50 if (!nhe) { in mlx5e_rep_encap_entry_attach()
60 e->nhe = nhe; in mlx5e_rep_encap_entry_attach()
61 spin_lock(&nhe->encap_list_lock); in mlx5e_rep_encap_entry_attach()
62 list_add_rcu(&e->encap_list, &nhe->encap_list); in mlx5e_rep_encap_entry_attach()
63 spin_unlock(&nhe->encap_list_lock); in mlx5e_rep_encap_entry_attach()
77 if (!e->nhe) in mlx5e_rep_encap_entry_detach()
80 spin_lock(&e->nhe->encap_list_lock); in mlx5e_rep_encap_entry_detach()
82 spin_unlock(&e->nhe->encap_list_lock); in mlx5e_rep_encap_entry_detach()
84 mlx5e_rep_neigh_entry_release(e->nhe); in mlx5e_rep_encap_entry_detach()
[all …]
H A Dneigh.h21 struct mlx5e_neigh_hash_entry **nhe);
22 void mlx5e_rep_neigh_entry_release(struct mlx5e_neigh_hash_entry *nhe);
/linux/drivers/net/ethernet/mellanox/mlx5/core/diag/
H A Den_rep_tracepoint.h15 TP_PROTO(const struct mlx5e_neigh_hash_entry *nhe, const u8 *ha,
17 TP_ARGS(nhe, ha, neigh_connected),
18 TP_STRUCT__entry(__string(devname, nhe->neigh_dev->name)
24 TP_fast_assign(const struct mlx5e_neigh *mn = &nhe->m_neigh;
H A Den_tc_tracepoint.h78 TP_PROTO(const struct mlx5e_neigh_hash_entry *nhe, bool neigh_used),
79 TP_ARGS(nhe, neigh_used),
80 TP_STRUCT__entry(__string(devname, nhe->neigh_dev->name)
85 TP_fast_assign(const struct mlx5e_neigh *mn = &nhe->m_neigh;
/linux/include/net/
H A Dnexthop.h353 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node() local
354 struct nh_info *nhi = rcu_dereference_rtnl(nhe->nh_info); in nexthop_mpath_fill_node()
432 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup() local
434 nhi = rcu_dereference(nhe->nh_info); in nexthop_get_nhc_lookup()
461 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_uses_dev() local
463 nhi = rcu_dereference(nhe->nh_info); in nexthop_uses_dev()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dtc_tun_encap.c313 mlx5e_get_next_matching_encap(struct mlx5e_neigh_hash_entry *nhe, in mlx5e_get_next_matching_encap() argument
324 list_next_or_null_rcu(&nhe->encap_list, in mlx5e_get_next_matching_encap()
328 list_first_or_null_rcu(&nhe->encap_list, in mlx5e_get_next_matching_encap()
332 next = list_next_or_null_rcu(&nhe->encap_list, in mlx5e_get_next_matching_encap()
364 mlx5e_get_next_valid_encap(struct mlx5e_neigh_hash_entry *nhe, in mlx5e_get_next_valid_encap() argument
367 return mlx5e_get_next_matching_encap(nhe, e, mlx5e_encap_valid); in mlx5e_get_next_valid_encap()
376 mlx5e_get_next_init_encap(struct mlx5e_neigh_hash_entry *nhe, in mlx5e_get_next_init_encap() argument
384 struct mlx5e_neigh *m_neigh = &nhe->m_neigh; in mlx5e_tc_update_neigh_used_value()
405 while ((e = mlx5e_get_next_valid_encap(nhe, e)) != NULL) { in mlx5e_tc_update_neigh_used_value()
439 trace_mlx5e_tc_update_neigh_used_value(nhe, neigh_used); in mlx5e_tc_update_neigh_used_value()
[all …]
H A Dtc_tun.c387 WRITE_ONCE(e->nhe->neigh_dev, attr.n->dev); in mlx5e_tc_tun_update_header_ipv4()
657 WRITE_ONCE(e->nhe->neigh_dev, attr.n->dev); in mlx5e_tc_tun_update_header_ipv6()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.h223 mlx5e_get_next_init_encap(struct mlx5e_neigh_hash_entry *nhe,
225 void mlx5e_tc_update_neigh_used_value(struct mlx5e_neigh_hash_entry *nhe);
H A Den_rep.h201 struct mlx5e_neigh_hash_entry *nhe; member
/linux/net/ipv4/
H A Dnexthop.c2707 struct nexthop *nhe; in nexthop_create_group() local
2710 nhe = nexthop_find_by_id(net, entry[i].id); in nexthop_create_group()
2711 if (!nexthop_get(nhe)) { in nexthop_create_group()
2716 nhi = rtnl_dereference(nhe->nh_info); in nexthop_create_group()
2724 nexthop_put(nhe); in nexthop_create_group()
2727 nhg->nh_entries[i].nh = nhe; in nexthop_create_group()
2730 list_add(&nhg->nh_entries[i].nh_list, &nhe->grp_list); in nexthop_create_group()