Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
H A Dtc.c41 struct mlx5e_neigh_hash_entry *nhe; in mlx5e_rep_encap_entry_attach() local
49 nhe = mlx5e_rep_neigh_entry_lookup(priv, m_neigh); in mlx5e_rep_encap_entry_attach()
50 if (!nhe) { in mlx5e_rep_encap_entry_attach()
51 err = mlx5e_rep_neigh_entry_create(priv, m_neigh, neigh_dev, &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()
[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/include/net/
H A Dnexthop.h355 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_mpath_fill_node()
356 struct nh_info *nhi = rcu_dereference_rtnl(nhe->nh_info); in nexthop_mpath_fill_node()
434 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_get_nhc_lookup()
436 nhi = rcu_dereference(nhe->nh_info); in nexthop_get_nhc_lookup()
463 struct nexthop *nhe = nhg->nh_entries[i].nh; in nexthop_uses_dev()
465 nhi = rcu_dereference(nhe->nh_info); in nexthop_uses_dev()
353 struct nexthop *nhe = nhg->nh_entries[i].nh; nexthop_mpath_fill_node() local
432 struct nexthop *nhe = nhg->nh_entries[i].nh; nexthop_get_nhc_lookup() local
461 struct nexthop *nhe = nhg->nh_entries[i].nh; nexthop_uses_dev() local
/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.c2764 struct nexthop *nhe; in nexthop_create_group() local
2767 nhe = nexthop_find_by_id(net, entry[i].id); in nexthop_create_group()
2768 if (!nexthop_get(nhe)) { in nexthop_create_group()
2773 nhi = rtnl_dereference(nhe->nh_info); in nexthop_create_group()
2781 nexthop_put(nhe); in nexthop_create_group()
2784 nhg->nh_entries[i].nh = nhe; in nexthop_create_group()
2787 list_add(&nhg->nh_entries[i].nh_list, &nhe->grp_list); in nexthop_create_group()