Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dneigh.c48 static bool mlx5e_rep_neigh_entry_hold(struct mlx5e_neigh_hash_entry *nhe) in mlx5e_rep_neigh_entry_hold() argument
50 return refcount_inc_not_zero(&nhe->refcnt); in mlx5e_rep_neigh_entry_hold()
53 static void mlx5e_rep_neigh_entry_remove(struct mlx5e_neigh_hash_entry *nhe);
55 void mlx5e_rep_neigh_entry_release(struct mlx5e_neigh_hash_entry *nhe) in mlx5e_rep_neigh_entry_release() argument
57 if (refcount_dec_and_test(&nhe->refcnt)) { in mlx5e_rep_neigh_entry_release()
58 mlx5e_rep_neigh_entry_remove(nhe); in mlx5e_rep_neigh_entry_release()
59 kfree_rcu(nhe, rcu); in mlx5e_rep_neigh_entry_release()
65 struct mlx5e_neigh_hash_entry *nhe) in mlx5e_get_next_nhe() argument
71 for (next = nhe ? in mlx5e_get_next_nhe()
73 &nhe->neigh_list, in mlx5e_get_next_nhe()
[all …]
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 …]
Dneigh.h21 struct mlx5e_neigh_hash_entry **nhe);
22 void mlx5e_rep_neigh_entry_release(struct mlx5e_neigh_hash_entry *nhe);
/drivers/net/ethernet/mellanox/mlx5/core/diag/
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;
28 __assign_str(devname, nhe->neigh_dev->name);
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;
89 __assign_str(devname, nhe->neigh_dev->name);
/drivers/net/ethernet/mellanox/mlx5/core/en/
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
379 return mlx5e_get_next_matching_encap(nhe, e, mlx5e_encap_initialized); in mlx5e_get_next_init_encap()
382 void mlx5e_tc_update_neigh_used_value(struct mlx5e_neigh_hash_entry *nhe) in mlx5e_tc_update_neigh_used_value() argument
384 struct mlx5e_neigh *m_neigh = &nhe->m_neigh; in mlx5e_tc_update_neigh_used_value()
[all …]
Dtc_tun.c386 WRITE_ONCE(e->nhe->neigh_dev, attr.n->dev); in mlx5e_tc_tun_update_header_ipv4()
654 WRITE_ONCE(e->nhe->neigh_dev, attr.n->dev); in mlx5e_tc_tun_update_header_ipv6()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_tc.h224 mlx5e_get_next_init_encap(struct mlx5e_neigh_hash_entry *nhe,
226 void mlx5e_tc_update_neigh_used_value(struct mlx5e_neigh_hash_entry *nhe);
Den_rep.h201 struct mlx5e_neigh_hash_entry *nhe; member