Home
last modified time | relevance | path

Searched refs:hfunc (Results 1 - 25 of 116) sorted by relevance

12345

/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drss.c98 rss->hash.hfunc = ETH_RSS_HASH_TOP; in mlx5e_rss_params_init()
398 err = mlx5e_rqt_redirect_indir(&rss->rqt, rqns, num_rqns, rss->hash.hfunc, &rss->indir); in mlx5e_rss_apply()
471 int mlx5e_rss_get_rxfh(struct mlx5e_rss *rss, u32 *indir, u8 *key, u8 *hfunc) in mlx5e_rss_get_rxfh() argument
483 if (hfunc) in mlx5e_rss_get_rxfh()
484 *hfunc = rss->hash.hfunc; in mlx5e_rss_get_rxfh()
490 const u8 *key, const u8 *hfunc, in mlx5e_rss_set_rxfh()
504 if (hfunc && *hfunc != rss->hash.hfunc) { in mlx5e_rss_set_rxfh()
489 mlx5e_rss_set_rxfh(struct mlx5e_rss *rss, const u32 *indir, const u8 *key, const u8 *hfunc, u32 *rqns, unsigned int num_rqns) mlx5e_rss_set_rxfh() argument
[all...]
H A Drqt.c67 u8 hfunc, struct mlx5e_rss_params_indir *indir) in mlx5e_calc_indir_rqns()
74 if (hfunc == ETH_RSS_HASH_XOR) in mlx5e_calc_indir_rqns()
92 u8 hfunc, struct mlx5e_rss_params_indir *indir) in mlx5e_rqt_init_indir()
101 err = mlx5e_calc_indir_rqns(rss_rqns, rqns, num_rqns, hfunc, indir); in mlx5e_rqt_init_indir()
149 u8 hfunc, struct mlx5e_rss_params_indir *indir) in mlx5e_rqt_redirect_indir()
161 err = mlx5e_calc_indir_rqns(rss_rqns, rqns, num_rqns, hfunc, indir); in mlx5e_rqt_redirect_indir()
66 mlx5e_calc_indir_rqns(u32 *rss_rqns, u32 *rqns, unsigned int num_rqns, u8 hfunc, struct mlx5e_rss_params_indir *indir) mlx5e_calc_indir_rqns() argument
90 mlx5e_rqt_init_indir(struct mlx5e_rqt *rqt, struct mlx5_core_dev *mdev, u32 *rqns, unsigned int num_rqns, u8 hfunc, struct mlx5e_rss_params_indir *indir) mlx5e_rqt_init_indir() argument
148 mlx5e_rqt_redirect_indir(struct mlx5e_rqt *rqt, u32 *rqns, unsigned int num_rqns, u8 hfunc, struct mlx5e_rss_params_indir *indir) mlx5e_rqt_redirect_indir() argument
H A Drqt.h30 u8 hfunc, struct mlx5e_rss_params_indir *indir);
40 u8 hfunc, struct mlx5e_rss_params_indir *indir);
H A Dtir.c96 static int mlx5e_hfunc_to_hw(u8 hfunc) in mlx5e_hfunc_to_hw() argument
98 switch (hfunc) { in mlx5e_hfunc_to_hw()
119 MLX5_SET(tirc, tirc, rx_hash_fn, mlx5e_hfunc_to_hw(rss_hash->hfunc)); in mlx5e_tir_builder_build_rss()
120 if (rss_hash->hfunc == ETH_RSS_HASH_TOP) { in mlx5e_tir_builder_build_rss()
H A Drx_res.h47 u32 *indir, u8 *key, u8 *hfunc);
49 const u32 *indir, const u8 *key, const u8 *hfunc);
H A Drss.h41 int mlx5e_rss_get_rxfh(struct mlx5e_rss *rss, u32 *indir, u8 *key, u8 *hfunc);
43 const u8 *key, const u8 *hfunc,
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Dethtool_common.h48 u8 *hfunc);
50 const u32 *indir, const u8 *key, const u8 hfunc);
52 u8 *key, u8 *hfunc, u32 rss_context);
55 const u8 hfunc, u32 *rss_context,
H A Dethtool_common.c1166 u8 *hfunc) in efx_ethtool_get_rxfh()
1175 if (hfunc) in efx_ethtool_get_rxfh()
1176 *hfunc = ETH_RSS_HASH_TOP; in efx_ethtool_get_rxfh()
1187 const u8 *key, const u8 hfunc) in efx_ethtool_set_rxfh()
1192 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in efx_ethtool_set_rxfh()
1206 u8 *key, u8 *hfunc, u32 rss_context) in efx_ethtool_get_rxfh_context()
1225 if (hfunc) in efx_ethtool_get_rxfh_context()
1226 *hfunc = ETH_RSS_HASH_TOP; in efx_ethtool_get_rxfh_context()
1238 const u8 hfunc, u3 in efx_ethtool_set_rxfh_context()
1165 efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, u8 *hfunc) efx_ethtool_get_rxfh() argument
1186 efx_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, const u8 *key, const u8 hfunc) efx_ethtool_set_rxfh() argument
1205 efx_ethtool_get_rxfh_context(struct net_device *net_dev, u32 *indir, u8 *key, u8 *hfunc, u32 rss_context) efx_ethtool_get_rxfh_context() argument
1236 efx_ethtool_set_rxfh_context(struct net_device *net_dev, const u32 *indir, const u8 *key, const u8 hfunc, u32 *rss_context, bool delete) efx_ethtool_set_rxfh_context() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Dethtool_common.h48 u8 *hfunc);
50 const u32 *indir, const u8 *key, const u8 hfunc);
52 u8 *key, u8 *hfunc, u32 rss_context);
55 const u8 hfunc, u32 *rss_context,
H A Dethtool_common.c1167 u8 *hfunc) in efx_ethtool_get_rxfh()
1176 if (hfunc) in efx_ethtool_get_rxfh()
1177 *hfunc = ETH_RSS_HASH_TOP; in efx_ethtool_get_rxfh()
1188 const u8 *key, const u8 hfunc) in efx_ethtool_set_rxfh()
1193 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in efx_ethtool_set_rxfh()
1207 u8 *key, u8 *hfunc, u32 rss_context) in efx_ethtool_get_rxfh_context()
1226 if (hfunc) in efx_ethtool_get_rxfh_context()
1227 *hfunc = ETH_RSS_HASH_TOP; in efx_ethtool_get_rxfh_context()
1239 const u8 hfunc, u3 in efx_ethtool_set_rxfh_context()
1166 efx_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, u8 *hfunc) efx_ethtool_get_rxfh() argument
1187 efx_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, const u8 *key, const u8 hfunc) efx_ethtool_set_rxfh() argument
1206 efx_ethtool_get_rxfh_context(struct net_device *net_dev, u32 *indir, u8 *key, u8 *hfunc, u32 rss_context) efx_ethtool_get_rxfh_context() argument
1237 efx_ethtool_set_rxfh_context(struct net_device *net_dev, const u32 *indir, const u8 *key, const u8 hfunc, u32 *rss_context, bool delete) efx_ethtool_set_rxfh_context() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.h45 u8 *hfunc);
47 const u32 *indir, const u8 *key, const u8 hfunc);
49 u8 *key, u8 *hfunc, u32 rss_context);
52 const u8 hfunc, u32 *rss_context,
H A Dethtool_common.c1168 u8 *hfunc) in efx_siena_ethtool_get_rxfh()
1177 if (hfunc) in efx_siena_ethtool_get_rxfh()
1178 *hfunc = ETH_RSS_HASH_TOP; in efx_siena_ethtool_get_rxfh()
1189 const u8 *key, const u8 hfunc) in efx_siena_ethtool_set_rxfh()
1194 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in efx_siena_ethtool_set_rxfh()
1208 u8 *key, u8 *hfunc, u32 rss_context) in efx_siena_ethtool_get_rxfh_context()
1227 if (hfunc) in efx_siena_ethtool_get_rxfh_context()
1228 *hfunc = ETH_RSS_HASH_TOP; in efx_siena_ethtool_get_rxfh_context()
1240 const u8 hfunc, u3 in efx_siena_ethtool_set_rxfh_context()
1167 efx_siena_ethtool_get_rxfh(struct net_device *net_dev, u32 *indir, u8 *key, u8 *hfunc) efx_siena_ethtool_get_rxfh() argument
1188 efx_siena_ethtool_set_rxfh(struct net_device *net_dev, const u32 *indir, const u8 *key, const u8 hfunc) efx_siena_ethtool_set_rxfh() argument
1207 efx_siena_ethtool_get_rxfh_context(struct net_device *net_dev, u32 *indir, u8 *key, u8 *hfunc, u32 rss_context) efx_siena_ethtool_get_rxfh_context() argument
1238 efx_siena_ethtool_set_rxfh_context(struct net_device *net_dev, const u32 *indir, const u8 *key, const u8 hfunc, u32 *rss_context, bool delete) efx_siena_ethtool_set_rxfh_context() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_rss.c119 const u8 hfunc) in hclge_comm_set_rss_hash_key()
124 ret = hclge_comm_parse_rss_hfunc(rss_cfg, hfunc, &hash_algo); in hclge_comm_set_rss_hash_key()
195 const u8 hfunc, u8 *hash_algo) in hclge_comm_parse_rss_hfunc()
197 switch (hfunc) { in hclge_comm_parse_rss_hfunc()
337 u8 *hfunc) in hclge_comm_get_rss_hash_info()
340 if (hfunc) { in hclge_comm_get_rss_hash_info()
343 *hfunc = ETH_RSS_HASH_TOP; in hclge_comm_get_rss_hash_info()
346 *hfunc = ETH_RSS_HASH_XOR; in hclge_comm_get_rss_hash_info()
349 *hfunc = ETH_RSS_HASH_UNKNOWN; in hclge_comm_get_rss_hash_info()
371 int hclge_comm_set_rss_algo_key(struct hclge_comm_hw *hw, const u8 hfunc, in hclge_comm_set_rss_algo_key() argument
117 hclge_comm_set_rss_hash_key(struct hclge_comm_rss_cfg *rss_cfg, struct hclge_comm_hw *hw, const u8 *key, const u8 hfunc) hclge_comm_set_rss_hash_key() argument
194 hclge_comm_parse_rss_hfunc(struct hclge_comm_rss_cfg *rss_cfg, const u8 hfunc, u8 *hash_algo) hclge_comm_parse_rss_hfunc() argument
336 hclge_comm_get_rss_hash_info(struct hclge_comm_rss_cfg *rss_cfg, u8 *key, u8 *hfunc) hclge_comm_get_rss_hash_info() argument
[all...]
H A Dhclge_comm_rss.h103 const u8 hfunc, u8 *hash_algo);
105 u8 *hfunc);
108 int hclge_comm_set_rss_algo_key(struct hclge_comm_hw *hw, const u8 hfunc,
128 const u8 hfunc);
/kernel/linux/linux-6.6/net/ethtool/
H A Drss.c15 u32 hfunc; member
100 data->hfunc = dev_hfunc; in rss_prepare_data()
126 if ((data->hfunc && in rss_fill_reply()
127 nla_put_u32(skb, ETHTOOL_A_RSS_HFUNC, data->hfunc)) || in rss_fill_reply()
/kernel/linux/linux-6.6/drivers/net/ethernet/microsoft/mana/
H A Dmana_ethtool.c212 u8 *hfunc) in mana_get_rxfh()
217 if (hfunc) in mana_get_rxfh()
218 *hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in mana_get_rxfh()
232 const u8 *key, const u8 hfunc) in mana_set_rxfh()
243 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in mana_set_rxfh()
211 mana_get_rxfh(struct net_device *ndev, u32 *indir, u8 *key, u8 *hfunc) mana_get_rxfh() argument
231 mana_set_rxfh(struct net_device *ndev, const u32 *indir, const u8 *key, const u8 hfunc) mana_set_rxfh() argument
/kernel/linux/linux-5.10/include/linux/
H A Dethtool.h465 u8 *hfunc);
467 const u8 *key, const u8 hfunc);
469 u8 *hfunc, u32 rss_context);
471 const u8 *key, const u8 hfunc,
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c1009 * @hfunc: hash function in use
1014 u8 *hfunc) in iavf_get_rxfh()
1019 if (hfunc) in iavf_get_rxfh()
1020 *hfunc = ETH_RSS_HASH_TOP; in iavf_get_rxfh()
1037 * @hfunc: hash function to use
1043 const u8 *key, const u8 hfunc) in iavf_set_rxfh()
1050 (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP)) in iavf_set_rxfh()
1013 iavf_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) iavf_get_rxfh() argument
1042 iavf_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *key, const u8 hfunc) iavf_set_rxfh() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c529 u8 *hfunc) in xgbe_get_rxfh()
543 if (hfunc) in xgbe_get_rxfh()
544 *hfunc = ETH_RSS_HASH_TOP; in xgbe_get_rxfh()
550 const u8 *key, const u8 hfunc) in xgbe_set_rxfh()
556 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) { in xgbe_set_rxfh()
528 xgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) xgbe_get_rxfh() argument
549 xgbe_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *key, const u8 hfunc) xgbe_set_rxfh() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c579 u8 *hfunc) in enic_get_rxfh()
586 if (hfunc) in enic_get_rxfh()
587 *hfunc = ETH_RSS_HASH_TOP; in enic_get_rxfh()
593 const u8 *hkey, const u8 hfunc) in enic_set_rxfh()
597 if ((hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) || in enic_set_rxfh()
578 enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, u8 *hfunc) enic_get_rxfh() argument
592 enic_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *hkey, const u8 hfunc) enic_set_rxfh() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/microchip/
H A Dlan743x_ethtool.c575 u32 *indir, u8 *key, u8 *hfunc) in lan743x_ethtool_get_rxfh()
618 if (hfunc) in lan743x_ethtool_get_rxfh()
619 (*hfunc) = ETH_RSS_HASH_TOP; in lan743x_ethtool_get_rxfh()
625 const u8 hfunc) in lan743x_ethtool_set_rxfh()
629 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in lan743x_ethtool_set_rxfh()
574 lan743x_ethtool_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) lan743x_ethtool_get_rxfh() argument
623 lan743x_ethtool_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *key, const u8 hfunc) lan743x_ethtool_set_rxfh() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c572 u8 *hfunc) in enic_get_rxfh()
579 if (hfunc) in enic_get_rxfh()
580 *hfunc = ETH_RSS_HASH_TOP; in enic_get_rxfh()
586 const u8 *hkey, const u8 hfunc) in enic_set_rxfh()
590 if ((hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) || in enic_set_rxfh()
571 enic_get_rxfh(struct net_device *netdev, u32 *indir, u8 *hkey, u8 *hfunc) enic_get_rxfh() argument
585 enic_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *hkey, const u8 hfunc) enic_set_rxfh() argument
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c1198 u8 *hfunc) in mlx5e_get_rxfh()
1211 if (hfunc) in mlx5e_get_rxfh()
1212 *hfunc = rss->hfunc; in mlx5e_get_rxfh()
1218 const u8 *key, const u8 hfunc) in mlx5e_set_rxfh()
1227 if ((hfunc != ETH_RSS_HASH_NO_CHANGE) && in mlx5e_set_rxfh()
1228 (hfunc != ETH_RSS_HASH_XOR) && in mlx5e_set_rxfh()
1229 (hfunc != ETH_RSS_HASH_TOP)) in mlx5e_set_rxfh()
1238 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc ! in mlx5e_set_rxfh()
1197 mlx5e_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) mlx5e_get_rxfh() argument
1217 mlx5e_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *key, const u8 hfunc) mlx5e_set_rxfh() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c839 const u8 *hkey, const u8 hfunc, in otx2_set_rxfh_context()
847 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in otx2_set_rxfh_context()
884 u8 *hkey, u8 *hfunc, u32 rss_context) in otx2_get_rxfh_context()
893 if (hfunc) in otx2_get_rxfh_context()
894 *hfunc = ETH_RSS_HASH_TOP; in otx2_get_rxfh_context()
924 u8 *hkey, u8 *hfunc) in otx2_get_rxfh()
926 return otx2_get_rxfh_context(dev, indir, hkey, hfunc, in otx2_get_rxfh()
932 const u8 *hkey, const u8 hfunc) in otx2_set_rxfh()
937 return otx2_set_rxfh_context(dev, indir, hkey, hfunc, in otx2_set_rxfh()
838 otx2_set_rxfh_context(struct net_device *dev, const u32 *indir, const u8 *hkey, const u8 hfunc, u32 *rss_context, bool delete) otx2_set_rxfh_context() argument
883 otx2_get_rxfh_context(struct net_device *dev, u32 *indir, u8 *hkey, u8 *hfunc, u32 rss_context) otx2_get_rxfh_context() argument
923 otx2_get_rxfh(struct net_device *dev, u32 *indir, u8 *hkey, u8 *hfunc) otx2_get_rxfh() argument
931 otx2_set_rxfh(struct net_device *dev, const u32 *indir, const u8 *hkey, const u8 hfunc) otx2_set_rxfh() argument
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dethtool.h848 u8 *hfunc);
850 const u8 *key, const u8 hfunc);
852 u8 *hfunc, u32 rss_context);
854 const u8 *key, const u8 hfunc,

Completed in 22 milliseconds

12345