Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
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() 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()
A 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()
A Dtir.c99 static int mlx5e_hfunc_to_hw(u8 hfunc) in mlx5e_hfunc_to_hw() argument
101 switch (hfunc) { in mlx5e_hfunc_to_hw()
122 MLX5_SET(tirc, tirc, rx_hash_fn, mlx5e_hfunc_to_hw(rss_hash->hfunc)); in mlx5e_tir_builder_build_rss()
123 if (rss_hash->hfunc == ETH_RSS_HASH_TOP) { in mlx5e_tir_builder_build_rss()
A Drqt.h30 u8 hfunc, struct mlx5e_rss_params_indir *indir);
40 u8 hfunc, struct mlx5e_rss_params_indir *indir);
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,
A Drx_res.h50 u32 *indir, u8 *key, u8 *hfunc);
52 const u32 *indir, const u8 *key, const u8 *hfunc);
A Drx_res.c195 u32 *indir, u8 *key, u8 *hfunc) in mlx5e_rx_res_rss_get_rxfh() argument
206 return mlx5e_rss_get_rxfh(rss, indir, key, hfunc); in mlx5e_rx_res_rss_get_rxfh()
210 const u32 *indir, const u8 *key, const u8 *hfunc) in mlx5e_rx_res_rss_set_rxfh() argument
221 return mlx5e_rss_set_rxfh(rss, indir, key, hfunc, res->rss_rqns, res->rss_nch); in mlx5e_rx_res_rss_set_rxfh()
A Dtir.h10 u8 hfunc; member
/linux/drivers/net/ethernet/sfc/
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,
A 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/drivers/net/ethernet/microsoft/mana/
A Dmana_ethtool.c128 u8 *hfunc) in mana_get_rxfh() argument
133 if (hfunc) in mana_get_rxfh()
134 *hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in mana_get_rxfh()
148 const u8 *key, const u8 hfunc) in mana_set_rxfh() argument
159 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in mana_set_rxfh()
/linux/drivers/net/ethernet/cisco/enic/
A Denic_ethtool.c583 u8 *hfunc) in enic_get_rxfh() argument
590 if (hfunc) in enic_get_rxfh()
591 *hfunc = ETH_RSS_HASH_TOP; in enic_get_rxfh()
597 const u8 *hkey, const u8 hfunc) in enic_set_rxfh() argument
601 if ((hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) || in enic_set_rxfh()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_ethtool.c758 const u8 *hkey, const u8 hfunc, in otx2_set_rxfh_context() argument
766 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in otx2_set_rxfh_context()
803 u8 *hkey, u8 *hfunc, u32 rss_context) in otx2_get_rxfh_context() argument
812 if (hfunc) in otx2_get_rxfh_context()
813 *hfunc = ETH_RSS_HASH_TOP; in otx2_get_rxfh_context()
843 u8 *hkey, u8 *hfunc) in otx2_get_rxfh() argument
845 return otx2_get_rxfh_context(dev, indir, hkey, hfunc, in otx2_get_rxfh()
851 const u8 *hkey, const u8 hfunc) in otx2_set_rxfh() argument
856 return otx2_set_rxfh_context(dev, indir, hkey, hfunc, &rss_context, 0); in otx2_set_rxfh()
/linux/drivers/net/ethernet/microchip/
A Dlan743x_ethtool.c575 u32 *indir, u8 *key, u8 *hfunc) in lan743x_ethtool_get_rxfh() argument
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() argument
629 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in lan743x_ethtool_set_rxfh()
/linux/include/linux/
A Dethtool.h668 u8 *hfunc);
670 const u8 *key, const u8 hfunc);
672 u8 *hfunc, u32 rss_context);
674 const u8 *key, const u8 hfunc,
/linux/drivers/net/ethernet/amd/xgbe/
A 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/drivers/net/ethernet/amazon/ena/
A Dena_ethtool.c743 u8 *hfunc) in ena_get_rxfh() argument
782 if (hfunc) in ena_get_rxfh()
783 *hfunc = func; in ena_get_rxfh()
789 const u8 *key, const u8 hfunc) in ena_set_rxfh() argument
802 switch (hfunc) { in ena_set_rxfh()
814 hfunc); in ena_set_rxfh()
/linux/drivers/net/ethernet/aquantia/atlantic/
A Daq_ethtool.c441 u8 *hfunc) in aq_ethtool_get_rss() argument
449 if (hfunc) in aq_ethtool_get_rss()
450 *hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in aq_ethtool_get_rss()
463 const u8 *key, const u8 hfunc) in aq_ethtool_set_rss() argument
475 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in aq_ethtool_set_rss()
/linux/drivers/net/ethernet/cavium/thunder/
A Dnicvf_ethtool.c653 u8 *hfunc) in nicvf_get_rxfh() argument
667 if (hfunc) in nicvf_get_rxfh()
668 *hfunc = ETH_RSS_HASH_TOP; in nicvf_get_rxfh()
674 const u8 *hkey, const u8 hfunc) in nicvf_set_rxfh() argument
680 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in nicvf_set_rxfh()
/linux/drivers/net/ethernet/netronome/nfp/
A Dnfp_net_ethtool.c1011 u8 *hfunc) in nfp_net_get_rxfh() argument
1024 if (hfunc) { in nfp_net_get_rxfh()
1025 *hfunc = nn->rss_hfunc; in nfp_net_get_rxfh()
1026 if (*hfunc >= 1 << ETH_RSS_HASH_FUNCS_COUNT) in nfp_net_get_rxfh()
1027 *hfunc = ETH_RSS_HASH_UNKNOWN; in nfp_net_get_rxfh()
1035 const u8 hfunc) in nfp_net_set_rxfh() argument
1041 !(hfunc == ETH_RSS_HASH_NO_CHANGE || hfunc == nn->rss_hfunc)) in nfp_net_set_rxfh()
/linux/drivers/net/ethernet/pensando/ionic/
A Dionic_ethtool.c711 u8 *hfunc) in ionic_get_rxfh() argument
725 if (hfunc) in ionic_get_rxfh()
726 *hfunc = ETH_RSS_HASH_TOP; in ionic_get_rxfh()
732 const u8 *key, const u8 hfunc) in ionic_set_rxfh() argument
736 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in ionic_set_rxfh()
/linux/drivers/net/ethernet/hisilicon/hns/
A Dhns_ethtool.c1189 hns_get_rss(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) in hns_get_rss() argument
1205 return ops->get_rss(priv->ae_handle, indir, key, hfunc); in hns_get_rss()
1210 const u8 hfunc) in hns_set_rss() argument
1223 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) { in hns_set_rss()
1228 return ops->set_rss(priv->ae_handle, indir, key, hfunc); in hns_set_rss()
/linux/drivers/net/ethernet/intel/fm10k/
A Dfm10k_ethtool.c1057 u8 *hfunc) in fm10k_get_rssh() argument
1062 if (hfunc) in fm10k_get_rssh()
1063 *hfunc = ETH_RSS_HASH_TOP; in fm10k_get_rssh()
1076 const u8 *key, const u8 hfunc) in fm10k_set_rssh() argument
1083 if (hfunc != ETH_RSS_HASH_NO_CHANGE && hfunc != ETH_RSS_HASH_TOP) in fm10k_set_rssh()
/linux/drivers/net/ethernet/mellanox/mlx4/
A Den_ethtool.c1235 static int mlx4_en_check_rxfh_func(struct net_device *dev, u8 hfunc) in mlx4_en_check_rxfh_func() argument
1240 if (hfunc == ETH_RSS_HASH_TOP) { in mlx4_en_check_rxfh_func()
1246 } else if (hfunc == ETH_RSS_HASH_XOR) { in mlx4_en_check_rxfh_func()
1258 u8 *hfunc) in mlx4_en_get_rxfh() argument
1274 if (hfunc) in mlx4_en_get_rxfh()
1275 *hfunc = priv->rss_hash_fn; in mlx4_en_get_rxfh()
1280 const u8 *key, const u8 hfunc) in mlx4_en_set_rxfh() argument
1310 if (hfunc != ETH_RSS_HASH_NO_CHANGE) { in mlx4_en_set_rxfh()
1311 err = mlx4_en_check_rxfh_func(dev, hfunc); in mlx4_en_set_rxfh()
1326 if (hfunc != ETH_RSS_HASH_NO_CHANGE) in mlx4_en_set_rxfh()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Den_ethtool.c1222 u8 *key, u8 *hfunc, u32 rss_context) in mlx5e_get_rxfh_context() argument
1228 err = mlx5e_rx_res_rss_get_rxfh(priv->rx_res, rss_context, indir, key, hfunc); in mlx5e_get_rxfh_context()
1234 const u8 *key, const u8 hfunc, in mlx5e_set_rxfh_context() argument
1255 hfunc == ETH_RSS_HASH_NO_CHANGE ? NULL : &hfunc); in mlx5e_set_rxfh_context()
1263 u8 *hfunc) in mlx5e_get_rxfh() argument
1265 return mlx5e_get_rxfh_context(netdev, indir, key, hfunc, 0); in mlx5e_get_rxfh()
1269 const u8 *key, const u8 hfunc) in mlx5e_set_rxfh() argument
1276 hfunc == ETH_RSS_HASH_NO_CHANGE ? NULL : &hfunc); in mlx5e_set_rxfh()

Completed in 274 milliseconds

123