Home
last modified time | relevance | path

Searched refs:tun_entropy (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dport_tun.c73 void mlx5_init_port_tun_entropy(struct mlx5_tun_entropy *tun_entropy, in mlx5_init_port_tun_entropy() argument
78 tun_entropy->mdev = mdev; in mlx5_init_port_tun_entropy()
79 mutex_init(&tun_entropy->lock); in mlx5_init_port_tun_entropy()
81 tun_entropy->num_enabling_entries = 0; in mlx5_init_port_tun_entropy()
82 tun_entropy->num_disabling_entries = 0; in mlx5_init_port_tun_entropy()
83 tun_entropy->enabled = entropy_flags.calc_supported ? in mlx5_init_port_tun_entropy()
87 static int mlx5_set_entropy(struct mlx5_tun_entropy *tun_entropy, in mlx5_set_entropy() argument
93 mlx5_query_port_tun_entropy(tun_entropy->mdev, &entropy_flags); in mlx5_set_entropy()
103 err = mlx5_set_port_gre_tun_entropy_calc(tun_entropy->mdev, in mlx5_set_entropy()
114 mlx5_core_warn(tun_entropy->mdev, in mlx5_set_entropy()
[all …]
Dport_tun.h17 void mlx5_init_port_tun_entropy(struct mlx5_tun_entropy *tun_entropy,
19 int mlx5_tun_entropy_refcount_inc(struct mlx5_tun_entropy *tun_entropy,
21 void mlx5_tun_entropy_refcount_dec(struct mlx5_tun_entropy *tun_entropy,
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.h77 struct mlx5_tun_entropy tun_entropy; member
Den_rep.c1105 struct mlx5_tun_entropy *tun_entropy = &uplink_priv->tun_entropy; in mlx5e_rep_encap_entry_attach() local
1109 err = mlx5_tun_entropy_refcount_inc(tun_entropy, e->reformat_type); in mlx5e_rep_encap_entry_attach()
1119 mlx5_tun_entropy_refcount_dec(tun_entropy, in mlx5e_rep_encap_entry_attach()
1140 struct mlx5_tun_entropy *tun_entropy = &uplink_priv->tun_entropy; in mlx5e_rep_encap_entry_detach() local
1151 mlx5_tun_entropy_refcount_dec(tun_entropy, e->reformat_type); in mlx5e_rep_encap_entry_detach()
1646 mlx5_init_port_tun_entropy(&uplink_priv->tun_entropy, priv->mdev); in mlx5e_init_rep_tx()