Home
last modified time | relevance | path

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

123

/linux-6.1.9/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.h47 u32 *indir, u8 *key, u8 *hfunc);
49 const u32 *indir, const u8 *key, const u8 *hfunc);
Dtir.h10 u8 hfunc; member
Drx_res.c192 u32 *indir, u8 *key, u8 *hfunc) in mlx5e_rx_res_rss_get_rxfh() argument
203 return mlx5e_rss_get_rxfh(rss, indir, key, hfunc); in mlx5e_rx_res_rss_get_rxfh()
207 const u32 *indir, const u8 *key, const u8 *hfunc) in mlx5e_rx_res_rss_set_rxfh() argument
218 return mlx5e_rss_set_rxfh(rss, indir, key, hfunc, res->rss_rqns, res->rss_nch); in mlx5e_rx_res_rss_set_rxfh()
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/sfc/
Dethtool_common.h50 u8 *hfunc);
52 const u32 *indir, const u8 *key, const u8 hfunc);
54 u8 *key, u8 *hfunc, u32 rss_context);
57 const u8 hfunc, u32 *rss_context,
Dethtool_common.c1204 u8 *hfunc) in efx_ethtool_get_rxfh() argument
1213 if (hfunc) in efx_ethtool_get_rxfh()
1214 *hfunc = ETH_RSS_HASH_TOP; in efx_ethtool_get_rxfh()
1225 const u8 *key, const u8 hfunc) in efx_ethtool_set_rxfh() argument
1230 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in efx_ethtool_set_rxfh()
1244 u8 *key, u8 *hfunc, u32 rss_context) in efx_ethtool_get_rxfh_context() argument
1263 if (hfunc) in efx_ethtool_get_rxfh_context()
1264 *hfunc = ETH_RSS_HASH_TOP; in efx_ethtool_get_rxfh_context()
1276 const u8 hfunc, u32 *rss_context, in efx_ethtool_set_rxfh_context() argument
1287 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in efx_ethtool_set_rxfh_context()
/linux-6.1.9/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()
195 const u8 hfunc, u8 *hash_algo) in hclge_comm_parse_rss_hfunc() argument
197 switch (hfunc) { in hclge_comm_parse_rss_hfunc()
338 u8 *hfunc) in hclge_comm_get_rss_hash_info() argument
341 if (hfunc) { in hclge_comm_get_rss_hash_info()
344 *hfunc = ETH_RSS_HASH_TOP; in hclge_comm_get_rss_hash_info()
347 *hfunc = ETH_RSS_HASH_XOR; in hclge_comm_get_rss_hash_info()
350 *hfunc = ETH_RSS_HASH_UNKNOWN; in hclge_comm_get_rss_hash_info()
372 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.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,
129 const u8 hfunc);
/linux-6.1.9/drivers/net/ethernet/microsoft/mana/
Dmana_ethtool.c149 u8 *hfunc) in mana_get_rxfh() argument
154 if (hfunc) in mana_get_rxfh()
155 *hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in mana_get_rxfh()
169 const u8 *key, const u8 hfunc) in mana_set_rxfh() argument
180 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in mana_set_rxfh()
/linux-6.1.9/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c572 u8 *hfunc) in enic_get_rxfh() argument
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() argument
590 if ((hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) || in enic_set_rxfh()
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_ethtool.c451 u8 *hfunc) in aq_ethtool_get_rss() argument
459 if (hfunc) in aq_ethtool_get_rss()
460 *hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in aq_ethtool_get_rss()
473 const u8 *key, const u8 hfunc) in aq_ethtool_set_rss() argument
485 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in aq_ethtool_set_rss()
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/net/ethernet/fungible/funeth/
Dfuneth_ethtool.c981 u8 *hfunc) in fun_get_rxfh() argument
995 if (hfunc) in fun_get_rxfh()
996 *hfunc = fp->hash_algo == FUN_ETH_RSS_ALG_TOEPLITZ ? in fun_get_rxfh()
1003 const u8 *key, const u8 hfunc) in fun_set_rxfh() argument
1013 if (hfunc == ETH_RSS_HASH_NO_CHANGE) in fun_set_rxfh()
1015 else if (hfunc == ETH_RSS_HASH_CRC32) in fun_set_rxfh()
1017 else if (hfunc == ETH_RSS_HASH_TOP) in fun_set_rxfh()
/linux-6.1.9/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-6.1.9/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