/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | rss.c | 98 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()
|
D | rqt.c | 67 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()
|
D | rqt.h | 30 u8 hfunc, struct mlx5e_rss_params_indir *indir); 40 u8 hfunc, struct mlx5e_rss_params_indir *indir);
|
D | tir.c | 96 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()
|
D | rss.h | 41 int mlx5e_rss_get_rxfh(struct mlx5e_rss *rss, u32 *indir, u8 *key, u8 *hfunc); 43 const u8 *key, const u8 *hfunc,
|
D | rx_res.h | 50 u32 *indir, u8 *key, u8 *hfunc); 52 const u32 *indir, const u8 *key, const u8 *hfunc);
|
D | tir.h | 10 u8 hfunc; member
|
/linux-5.19.10/drivers/net/ethernet/sfc/siena/ |
D | ethtool_common.h | 45 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,
|
D | ethtool_common.c | 1168 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/ |
D | ethtool_common.h | 48 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,
|
D | ethtool_common.c | 1166 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/ |
D | hclge_comm_rss.c | 119 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 …]
|
D | hclge_comm_rss.h | 105 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/ |
D | mana_ethtool.c | 139 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/ |
D | enic_ethtool.c | 587 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/ |
D | ethtool.h | 700 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/ |
D | xgbe-ethtool.c | 526 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/ |
D | otx2_ethtool.c | 824 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/ |
D | ena_ethtool.c | 750 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/ |
D | aq_ethtool.c | 450 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/ |
D | nicvf_ethtool.c | 657 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/ |
D | funeth_ethtool.c | 979 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/ |
D | lan743x_ethtool.c | 937 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/ |
D | nfp_net_ethtool.c | 1021 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/ |
D | ionic_ethtool.c | 715 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()
|