Home
last modified time | relevance | path

Searched refs:hfunc (Results 1 – 25 of 62) sorted by relevance

123

/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en/
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() argument
504 if (hfunc && *hfunc != rss->hash.hfunc) { in mlx5e_rss_set_rxfh()
505 switch (*hfunc) { in mlx5e_rss_set_rxfh()
515 rss->hash.hfunc = *hfunc; in mlx5e_rss_set_rxfh()
519 if (rss->hash.hfunc == ETH_RSS_HASH_TOP) in mlx5e_rss_set_rxfh()
Drqt.c67 u8 hfunc, struct mlx5e_rss_params_indir *indir) in mlx5e_calc_indir_rqns() argument
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() argument
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() argument
161 err = mlx5e_calc_indir_rqns(rss_rqns, rqns, num_rqns, hfunc, indir); in mlx5e_rqt_redirect_indir()
Drqt.h30 u8 hfunc, struct mlx5e_rss_params_indir *indir);
40 u8 hfunc, struct mlx5e_rss_params_indir *indir);
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()
Drss.h41 int mlx5e_rss_get_rxfh(struct mlx5e_rss *rss, u32 *indir, u8 *key, u8 *hfunc);
43 const u8 *key, const u8 *hfunc,
Drx_res.h50 u32 *indir, u8 *key, u8 *hfunc);
52 const u32 *indir, const u8 *key, const u8 *hfunc);
Dtir.h10 u8 hfunc; member
/linux-5.19.10/drivers/net/ethernet/sfc/siena/
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,
Dethtool_common.c1168 u8 *hfunc) in efx_siena_ethtool_get_rxfh() argument
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() argument
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() argument
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, u32 *rss_context, in efx_siena_ethtool_set_rxfh_context() argument
1251 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in efx_siena_ethtool_set_rxfh_context()
/linux-5.19.10/drivers/net/ethernet/sfc/
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,
Dethtool_common.c1166 u8 *hfunc) in efx_ethtool_get_rxfh() argument
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() argument
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() argument
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, u32 *rss_context, in efx_ethtool_set_rxfh_context() argument
1249 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in efx_ethtool_set_rxfh_context()
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3_common/
Dhclge_comm_rss.c119 const u8 hfunc) in hclge_comm_set_rss_hash_key() argument
124 ret = hclge_comm_parse_rss_hfunc(rss_cfg, hfunc, &hash_algo); in hclge_comm_set_rss_hash_key()
212 const u8 hfunc, u8 *hash_algo) in hclge_comm_parse_rss_hfunc() argument
214 switch (hfunc) { in hclge_comm_parse_rss_hfunc()
358 u8 *hfunc) in hclge_comm_get_rss_hash_info() argument
361 if (hfunc) { in hclge_comm_get_rss_hash_info()
364 *hfunc = ETH_RSS_HASH_TOP; in hclge_comm_get_rss_hash_info()
367 *hfunc = ETH_RSS_HASH_XOR; in hclge_comm_get_rss_hash_info()
370 *hfunc = ETH_RSS_HASH_UNKNOWN; in hclge_comm_get_rss_hash_info()
392 int hclge_comm_set_rss_algo_key(struct hclge_comm_hw *hw, const u8 hfunc, in hclge_comm_set_rss_algo_key() argument
[all …]
Dhclge_comm_rss.h105 const u8 hfunc, u8 *hash_algo);
107 u8 *hfunc);
110 int hclge_comm_set_rss_algo_key(struct hclge_comm_hw *hw, const u8 hfunc,
131 const u8 hfunc);
/linux-5.19.10/drivers/net/ethernet/microsoft/mana/
Dmana_ethtool.c139 u8 *hfunc) in mana_get_rxfh() argument
144 if (hfunc) in mana_get_rxfh()
145 *hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in mana_get_rxfh()
159 const u8 *key, const u8 hfunc) in mana_set_rxfh() argument
170 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in mana_set_rxfh()
/linux-5.19.10/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c587 u8 *hfunc) in enic_get_rxfh() argument
594 if (hfunc) in enic_get_rxfh()
595 *hfunc = ETH_RSS_HASH_TOP; in enic_get_rxfh()
601 const u8 *hkey, const u8 hfunc) in enic_set_rxfh() argument
605 if ((hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) || in enic_set_rxfh()
/linux-5.19.10/include/linux/
Dethtool.h700 u8 *hfunc);
702 const u8 *key, const u8 hfunc);
704 u8 *hfunc, u32 rss_context);
706 const u8 *key, const u8 hfunc,
/linux-5.19.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-ethtool.c526 u8 *hfunc) in xgbe_get_rxfh() argument
540 if (hfunc) in xgbe_get_rxfh()
541 *hfunc = ETH_RSS_HASH_TOP; in xgbe_get_rxfh()
547 const u8 *key, const u8 hfunc) in xgbe_set_rxfh() argument
553 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) { in xgbe_set_rxfh()
/linux-5.19.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c824 const u8 *hkey, const u8 hfunc, in otx2_set_rxfh_context() argument
832 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in otx2_set_rxfh_context()
869 u8 *hkey, u8 *hfunc, u32 rss_context) in otx2_get_rxfh_context() argument
878 if (hfunc) in otx2_get_rxfh_context()
879 *hfunc = ETH_RSS_HASH_TOP; in otx2_get_rxfh_context()
909 u8 *hkey, u8 *hfunc) in otx2_get_rxfh() argument
911 return otx2_get_rxfh_context(dev, indir, hkey, hfunc, in otx2_get_rxfh()
917 const u8 *hkey, const u8 hfunc) in otx2_set_rxfh() argument
922 return otx2_set_rxfh_context(dev, indir, hkey, hfunc, &rss_context, 0); in otx2_set_rxfh()
/linux-5.19.10/drivers/net/ethernet/amazon/ena/
Dena_ethtool.c750 u8 *hfunc) in ena_get_rxfh() argument
789 if (hfunc) in ena_get_rxfh()
790 *hfunc = func; in ena_get_rxfh()
796 const u8 *key, const u8 hfunc) in ena_set_rxfh() argument
809 switch (hfunc) { in ena_set_rxfh()
821 hfunc); in ena_set_rxfh()
/linux-5.19.10/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c450 u8 *hfunc) in aq_ethtool_get_rss() argument
458 if (hfunc) in aq_ethtool_get_rss()
459 *hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in aq_ethtool_get_rss()
472 const u8 *key, const u8 hfunc) in aq_ethtool_set_rss() argument
484 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in aq_ethtool_set_rss()
/linux-5.19.10/drivers/net/ethernet/cavium/thunder/
Dnicvf_ethtool.c657 u8 *hfunc) in nicvf_get_rxfh() argument
671 if (hfunc) in nicvf_get_rxfh()
672 *hfunc = ETH_RSS_HASH_TOP; in nicvf_get_rxfh()
678 const u8 *hkey, const u8 hfunc) in nicvf_set_rxfh() argument
684 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in nicvf_set_rxfh()
/linux-5.19.10/drivers/net/ethernet/fungible/funeth/
Dfuneth_ethtool.c979 u8 *hfunc) in fun_get_rxfh() argument
993 if (hfunc) in fun_get_rxfh()
994 *hfunc = fp->hash_algo == FUN_ETH_RSS_ALG_TOEPLITZ ? in fun_get_rxfh()
1001 const u8 *key, const u8 hfunc) in fun_set_rxfh() argument
1011 if (hfunc == ETH_RSS_HASH_NO_CHANGE) in fun_set_rxfh()
1013 else if (hfunc == ETH_RSS_HASH_CRC32) in fun_set_rxfh()
1015 else if (hfunc == ETH_RSS_HASH_TOP) in fun_set_rxfh()
/linux-5.19.10/drivers/net/ethernet/microchip/
Dlan743x_ethtool.c937 u32 *indir, u8 *key, u8 *hfunc) in lan743x_ethtool_get_rxfh() argument
980 if (hfunc) in lan743x_ethtool_get_rxfh()
981 (*hfunc) = ETH_RSS_HASH_TOP; in lan743x_ethtool_get_rxfh()
987 const u8 hfunc) in lan743x_ethtool_set_rxfh() argument
991 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in lan743x_ethtool_set_rxfh()
/linux-5.19.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_ethtool.c1021 u8 *hfunc) in nfp_net_get_rxfh() argument
1034 if (hfunc) { in nfp_net_get_rxfh()
1035 *hfunc = nn->rss_hfunc; in nfp_net_get_rxfh()
1036 if (*hfunc >= 1 << ETH_RSS_HASH_FUNCS_COUNT) in nfp_net_get_rxfh()
1037 *hfunc = ETH_RSS_HASH_UNKNOWN; in nfp_net_get_rxfh()
1045 const u8 hfunc) in nfp_net_set_rxfh() argument
1051 !(hfunc == ETH_RSS_HASH_NO_CHANGE || hfunc == nn->rss_hfunc)) in nfp_net_set_rxfh()
/linux-5.19.10/drivers/net/ethernet/pensando/ionic/
Dionic_ethtool.c715 u8 *hfunc) in ionic_get_rxfh() argument
729 if (hfunc) in ionic_get_rxfh()
730 *hfunc = ETH_RSS_HASH_TOP; in ionic_get_rxfh()
736 const u8 *key, const u8 hfunc) in ionic_set_rxfh() argument
740 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in ionic_set_rxfh()

123