Home
last modified time | relevance | path

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

123

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drss.c159 rss->hash.hfunc = ETH_RSS_HASH_TOP; in mlx5e_rss_params_init()
480 err = mlx5e_rqt_redirect_indir(&rss->rqt, rqns, vhca_ids, num_rqns, rss->hash.hfunc, in mlx5e_rss_apply()
554 int mlx5e_rss_get_rxfh(struct mlx5e_rss *rss, u32 *indir, u8 *key, u8 *hfunc) in mlx5e_rss_get_rxfh() argument
564 if (hfunc) in mlx5e_rss_get_rxfh()
565 *hfunc = rss->hash.hfunc; in mlx5e_rss_get_rxfh()
571 const u8 *key, const u8 *hfunc, in mlx5e_rss_set_rxfh() argument
583 if (hfunc && *hfunc != rss->hash.hfunc) { in mlx5e_rss_set_rxfh()
584 switch (*hfunc) { in mlx5e_rss_set_rxfh()
594 rss->hash.hfunc = *hfunc; in mlx5e_rss_set_rxfh()
598 if (rss->hash.hfunc == ETH_RSS_HASH_TOP) in mlx5e_rss_set_rxfh()
H A Drqt.c113 u8 hfunc, struct mlx5e_rss_params_indir *indir) in mlx5e_calc_indir_rqns() argument
120 if (hfunc == ETH_RSS_HASH_XOR) in mlx5e_calc_indir_rqns()
140 u8 hfunc, struct mlx5e_rss_params_indir *indir) in mlx5e_rqt_init_indir() argument
158 err = mlx5e_calc_indir_rqns(rss_rqns, rqns, rss_vhca_ids, vhca_ids, num_rqns, hfunc, indir); in mlx5e_rqt_init_indir()
232 u8 hfunc, struct mlx5e_rss_params_indir *indir) in mlx5e_rqt_redirect_indir() argument
256 err = mlx5e_calc_indir_rqns(rss_rqns, rqns, rss_vhca_ids, vhca_ids, num_rqns, hfunc, indir); in mlx5e_rqt_redirect_indir()
H 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()
H A Drqt.h32 u8 hfunc, struct mlx5e_rss_params_indir *indir);
45 u8 hfunc, struct mlx5e_rss_params_indir *indir);
H A Drss.h47 int mlx5e_rss_get_rxfh(struct mlx5e_rss *rss, u32 *indir, u8 *key, u8 *hfunc);
49 const u8 *key, const u8 *hfunc,
H A Drx_res.h47 u32 *indir, u8 *key, u8 *hfunc);
49 const u32 *indir, const u8 *key, const u8 *hfunc);
H A Dtir.h10 u8 hfunc; member
H A Drx_res.c199 u32 *indir, u8 *key, u8 *hfunc) in mlx5e_rx_res_rss_get_rxfh() argument
210 return mlx5e_rss_get_rxfh(rss, indir, key, hfunc); in mlx5e_rx_res_rss_get_rxfh()
214 const u32 *indir, const u8 *key, const u8 *hfunc) in mlx5e_rx_res_rss_set_rxfh() argument
226 return mlx5e_rss_set_rxfh(rss, indir, key, hfunc, res->rss_rqns, vhca_ids, in mlx5e_rx_res_rss_set_rxfh()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/
H A Dhclge_comm_rss.c122 const u8 hfunc) in hclge_comm_set_rss_hash_key() argument
127 ret = hclge_comm_parse_rss_hfunc(rss_cfg, hfunc, &hash_algo); in hclge_comm_set_rss_hash_key()
201 const u8 hfunc, u8 *hash_algo) in hclge_comm_parse_rss_hfunc() argument
203 switch (hfunc) { in hclge_comm_parse_rss_hfunc()
347 u8 *hfunc) in hclge_comm_get_rss_hash_info() argument
350 if (hfunc) { in hclge_comm_get_rss_hash_info()
353 *hfunc = ETH_RSS_HASH_TOP; in hclge_comm_get_rss_hash_info()
356 *hfunc = ETH_RSS_HASH_XOR; in hclge_comm_get_rss_hash_info()
359 *hfunc = ETH_RSS_HASH_UNKNOWN; in hclge_comm_get_rss_hash_info()
383 int hclge_comm_set_rss_algo_key(struct hclge_comm_hw *hw, const u8 hfunc, in hclge_comm_set_rss_algo_key() 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);
/linux/net/ethtool/
H A Drss.c16 u32 hfunc; member
95 data->hfunc = rxfh.hfunc; in rss_prepare_get()
116 data->hfunc = ctx->hfunc; in rss_prepare_ctx()
198 if ((data->hfunc && in rss_fill_reply()
199 nla_put_u32(skb, ETHTOOL_A_RSS_HFUNC, data->hfunc)) || in rss_fill_reply()
H A Dioctl.c1193 rxfh_dev.hfunc = ETH_RSS_HASH_NO_CHANGE; in ethtool_set_rxfh_indir()
1280 rxfh_dev.hfunc = ctx->hfunc; in ethtool_get_rxfh()
1290 if (copy_to_user(useraddr + offsetof(struct ethtool_rxfh, hfunc), in ethtool_get_rxfh()
1291 &rxfh_dev.hfunc, sizeof(rxfh.hfunc))) { in ethtool_get_rxfh()
1342 ctx->hfunc = ETH_RSS_HASH_NO_CHANGE; in ethtool_rxfh_ctx_alloc()
1405 rxfh.key_size == 0 && rxfh.hfunc == ETH_RSS_HASH_NO_CHANGE && in ethtool_set_rxfh()
1414 (rxfh.hfunc && rxfh.hfunc != ETH_RSS_HASH_NO_CHANGE) || in ethtool_set_rxfh()
1511 rxfh_dev.hfunc = rxfh.hfunc; in ethtool_set_rxfh()
1603 if (rxfh_dev.hfunc != ETH_RSS_HASH_NO_CHANGE) in ethtool_set_rxfh()
1604 ctx->hfunc = rxfh_dev.hfunc; in ethtool_set_rxfh()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c1446 symm = !!(adapter->hfunc == VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC); in iavf_set_adv_rss_hash_opt()
1745 rxfh->hfunc = ETH_RSS_HASH_TOP; in iavf_get_rxfh()
1746 if (adapter->hfunc == VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC) in iavf_get_rxfh()
1777 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in iavf_set_rxfh()
1778 rxfh->hfunc != ETH_RSS_HASH_TOP) in iavf_set_rxfh()
1782 adapter->hfunc != VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC) { in iavf_set_rxfh()
1785 adapter->hfunc = VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC; in iavf_set_rxfh()
1788 adapter->hfunc != VIRTCHNL_RSS_ALG_TOEPLITZ_ASYMMETRIC) { in iavf_set_rxfh()
1789 adapter->hfunc = VIRTCHNL_RSS_ALG_TOEPLITZ_ASYMMETRIC; in iavf_set_rxfh()
/linux/drivers/net/ethernet/microsoft/mana/
H A Dmana_ethtool.c240 rxfh->hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in mana_get_rxfh()
266 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in mana_set_rxfh()
267 rxfh->hfunc != ETH_RSS_HASH_TOP) in mana_set_rxfh()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1220 static int mlx4_en_check_rxfh_func(struct net_device *dev, u8 hfunc) in mlx4_en_check_rxfh_func() argument
1225 if (hfunc == ETH_RSS_HASH_TOP) { in mlx4_en_check_rxfh_func()
1231 } else if (hfunc == ETH_RSS_HASH_XOR) { in mlx4_en_check_rxfh_func()
1259 rxfh->hfunc = priv->rss_hash_fn; in mlx4_en_get_rxfh()
1295 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE) { in mlx4_en_set_rxfh()
1296 err = mlx4_en_check_rxfh_func(dev, rxfh->hfunc); in mlx4_en_set_rxfh()
1311 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE) in mlx4_en_set_rxfh()
1312 priv->rss_hash_fn = rxfh->hfunc; in mlx4_en_set_rxfh()
/linux/drivers/net/ethernet/cisco/enic/
H A Denic_ethtool.c661 rxfh->hfunc = ETH_RSS_HASH_TOP; in enic_get_rxfh()
673 (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in enic_set_rxfh()
674 rxfh->hfunc != ETH_RSS_HASH_TOP)) in enic_set_rxfh()
/linux/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c541 rxfh->hfunc = ETH_RSS_HASH_TOP; in xgbe_get_rxfh()
554 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in xgbe_set_rxfh()
555 rxfh->hfunc != ETH_RSS_HASH_TOP) { in xgbe_set_rxfh()
/linux/drivers/net/ethernet/fungible/funeth/
H A Dfuneth_ethtool.c995 rxfh->hfunc = fp->hash_algo == FUN_ETH_RSS_ALG_TOEPLITZ ? in fun_get_rxfh()
1013 if (rxfh->hfunc == ETH_RSS_HASH_NO_CHANGE) in fun_set_rxfh()
1015 else if (rxfh->hfunc == ETH_RSS_HASH_CRC32) in fun_set_rxfh()
1017 else if (rxfh->hfunc == ETH_RSS_HASH_TOP) in fun_set_rxfh()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_ethtool.c454 rxfh->hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in aq_ethtool_get_rss()
480 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in aq_ethtool_set_rss()
481 rxfh->hfunc != ETH_RSS_HASH_TOP) in aq_ethtool_set_rss()
/linux/drivers/net/ethernet/huawei/hinic/
H A Dhinic_ethtool.c1155 rxfh->hfunc = hash_engine_type ? ETH_RSS_HASH_TOP : ETH_RSS_HASH_XOR; in hinic_get_rxfh()
1183 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE) { in hinic_set_rxfh()
1184 if (rxfh->hfunc != ETH_RSS_HASH_TOP && in hinic_set_rxfh()
1185 rxfh->hfunc != ETH_RSS_HASH_XOR) in hinic_set_rxfh()
1188 nic_dev->rss_hash_engine = (rxfh->hfunc == ETH_RSS_HASH_XOR) ? in hinic_set_rxfh()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_ethtool.c463 if (mlx5e_rx_res_get_current_hash(priv->rx_res).hfunc == ETH_RSS_HASH_XOR) { in mlx5e_ethtool_set_channels()
1465 rxfh->indir, rxfh->key, &rxfh->hfunc); in mlx5e_get_rxfh()
1475 u8 hfunc = rxfh->hfunc; in mlx5e_set_rxfh() local
1483 if (hfunc == ETH_RSS_HASH_XOR) { in mlx5e_set_rxfh()
1507 hfunc == ETH_RSS_HASH_NO_CHANGE ? NULL : &hfunc); in mlx5e_set_rxfh()
/linux/drivers/net/ethernet/cavium/thunder/
H A Dnicvf_ethtool.c671 rxfh->hfunc = ETH_RSS_HASH_TOP; in nicvf_get_rxfh()
684 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in nicvf_set_rxfh()
685 rxfh->hfunc != ETH_RSS_HASH_TOP) in nicvf_set_rxfh()
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_ethtool.c104 rxfh->hfunc = ETH_RSS_HASH_TOP; in idpf_get_rxfh()
154 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in idpf_set_rxfh()
155 rxfh->hfunc != ETH_RSS_HASH_TOP) { in idpf_set_rxfh()
/linux/drivers/net/ethernet/amazon/ena/
H A Dena_ethtool.c963 rxfh->hfunc = func; in ena_get_rxfh()
983 switch (rxfh->hfunc) { in ena_set_rxfh()
995 rxfh->hfunc); in ena_set_rxfh()
/linux/include/linux/
H A Dethtool.h178 u8 hfunc; member
699 u8 hfunc; member

123