| /linux/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
| H A D | hclge_comm_rss.c | 122 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 D | hclge_comm_rss.h | 103 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 D | rss.c | 20 u32 hfunc; member 178 data->hfunc = rxfh.hfunc; in rss_prepare_get() 196 data->hfunc = ctx->hfunc; in __rss_prepare_ctx() 316 ((data->hfunc && in rss_fill_reply() 317 nla_put_u32(skb, ETHTOOL_A_RSS_HFUNC, data->hfunc)) || in rss_fill_reply() 817 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE) in rss_set_ctx_update() 818 ctx->hfunc = rxfh->hfunc; in rss_set_ctx_update() 853 rxfh.hfunc = data.hfunc; in ethnl_rss_set() 854 ethnl_update_u8_u32(&rxfh.hfunc, tb[ETHTOOL_A_RSS_HFUNC], &mod); in ethnl_rss_set() 855 if (rxfh.hfunc == data.hfunc) in ethnl_rss_set() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | tir.c | 99 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()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_ethtool.c | 1516 &rxfh->hfunc, &symmetric); in mlx5e_get_rxfh() 1531 u8 hfunc = rxfh->hfunc; in mlx5e_set_rxfh() local 1538 hfunc == ETH_RSS_HASH_NO_CHANGE ? NULL : &hfunc, in mlx5e_set_rxfh() 1552 u8 hfunc = rxfh->hfunc; in mlx5e_create_rxfh_context() local 1564 hfunc == ETH_RSS_HASH_NO_CHANGE ? NULL : &hfunc, in mlx5e_create_rxfh_context() 1575 &ctx->hfunc, &symmetric); in mlx5e_create_rxfh_context() 1591 u8 hfunc = rxfh->hfunc; in mlx5e_modify_rxfh_context() local 1598 hfunc == ETH_RSS_HASH_NO_CHANGE ? NULL : &hfunc, in mlx5e_modify_rxfh_context()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_ethtool.c | 826 if (rxfh->hfunc && rxfh->hfunc != ETH_RSS_HASH_TOP) in otx2_create_rxfh() 828 ctx->hfunc = ETH_RSS_HASH_TOP; in otx2_create_rxfh() 853 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in otx2_modify_rxfh() 854 rxfh->hfunc != ETH_RSS_HASH_TOP) in otx2_modify_rxfh() 893 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in otx2_set_rxfh() 894 rxfh->hfunc != ETH_RSS_HASH_TOP) in otx2_set_rxfh() 929 rxfh->hfunc = ETH_RSS_HASH_TOP; in otx2_get_rxfh()
|
| /linux/drivers/net/ethernet/intel/iavf/ |
| H A D | iavf_ethtool.c | 1508 symm = !!(adapter->hfunc == VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC); in iavf_set_rxfh_fields() 1791 rxfh->hfunc = ETH_RSS_HASH_TOP; in iavf_get_rxfh() 1792 if (adapter->hfunc == VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC) in iavf_get_rxfh() 1823 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in iavf_set_rxfh() 1824 rxfh->hfunc != ETH_RSS_HASH_TOP) in iavf_set_rxfh() 1828 adapter->hfunc != VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC) { in iavf_set_rxfh() 1831 adapter->hfunc = VIRTCHNL_RSS_ALG_TOEPLITZ_SYMMETRIC; in iavf_set_rxfh() 1834 adapter->hfunc != VIRTCHNL_RSS_ALG_TOEPLITZ_ASYMMETRIC) { in iavf_set_rxfh() 1835 adapter->hfunc = VIRTCHNL_RSS_ALG_TOEPLITZ_ASYMMETRIC; in iavf_set_rxfh()
|
| H A D | iavf.h | 454 enum virtchnl_rss_algorithm hfunc; member
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | ethtool_common.c | 1176 rxfh->hfunc = ETH_RSS_HASH_TOP; in efx_ethtool_get_rxfh() 1202 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in efx_ethtool_modify_rxfh_context() 1203 rxfh->hfunc != ETH_RSS_HASH_TOP) { in efx_ethtool_modify_rxfh_context() 1241 if (rxfh->hfunc == ETH_RSS_HASH_NO_CHANGE) in efx_ethtool_create_rxfh_context() 1242 ctx->hfunc = ETH_RSS_HASH_TOP; in efx_ethtool_create_rxfh_context() 1276 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in efx_ethtool_set_rxfh() 1277 rxfh->hfunc != ETH_RSS_HASH_TOP) in efx_ethtool_set_rxfh()
|
| /linux/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_ae_adapt.c | 881 u8 *hfunc) in hns_ae_get_rss() argument 886 if (hfunc) in hns_ae_get_rss() 887 *hfunc = ETH_RSS_HASH_TOP; in hns_ae_get_rss() 902 const u8 *key, const u8 hfunc) in hns_ae_set_rss() argument
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_ethtool.c | 1220 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/wangxun/libwx/ |
| H A D | wx_ethtool.c | 598 rxfh->hfunc = ETH_RSS_HASH_TOP; in wx_get_rxfh() 617 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in wx_set_rxfh() 618 rxfh->hfunc != ETH_RSS_HASH_TOP) in wx_set_rxfh()
|
| /linux/drivers/net/ethernet/microsoft/mana/ |
| H A D | mana_ethtool.c | 355 rxfh->hfunc = ETH_RSS_HASH_TOP; /* Toeplitz */ in mana_get_rxfh() 381 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in mana_set_rxfh() 382 rxfh->hfunc != ETH_RSS_HASH_TOP) in mana_set_rxfh()
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_ethtool.c | 1106 rxfh->hfunc = hash_engine_type ? ETH_RSS_HASH_TOP : ETH_RSS_HASH_XOR; in hinic_get_rxfh() 1134 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE) { in hinic_set_rxfh() 1135 if (rxfh->hfunc != ETH_RSS_HASH_TOP && in hinic_set_rxfh() 1136 rxfh->hfunc != ETH_RSS_HASH_XOR) in hinic_set_rxfh() 1139 nic_dev->rss_hash_engine = (rxfh->hfunc == ETH_RSS_HASH_XOR) ? in hinic_set_rxfh()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/ |
| H A D | hns3_ethtool.c | 948 &rxfh->hfunc); in hns3_get_rss() 962 rxfh->hfunc != ETH_RSS_HASH_TOP) || in hns3_set_rss() 963 (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in hns3_set_rss() 964 rxfh->hfunc != ETH_RSS_HASH_TOP && in hns3_set_rss() 965 rxfh->hfunc != ETH_RSS_HASH_XOR)) { in hns3_set_rss() 977 rxfh->hfunc); in hns3_set_rss()
|
| H A D | hnae3.h | 701 u8 *hfunc); 703 const u8 *key, const u8 hfunc);
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_ethtool.c | 1325 rxfh->hfunc = ETH_RSS_HASH_TOP; in fbnic_get_rxfh() 1366 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in fbnic_set_rxfh() 1367 rxfh->hfunc != ETH_RSS_HASH_TOP) in fbnic_set_rxfh() 1479 if (rxfh->hfunc && rxfh->hfunc != ETH_RSS_HASH_TOP) { in fbnic_create_rxfh_context() 1483 ctx->hfunc = ETH_RSS_HASH_TOP; in fbnic_create_rxfh_context()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | ethtool_common.c | 1164 rxfh->hfunc = ETH_RSS_HASH_TOP; in efx_siena_ethtool_get_rxfh() 1183 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in efx_siena_ethtool_set_rxfh() 1184 rxfh->hfunc != ETH_RSS_HASH_TOP) in efx_siena_ethtool_set_rxfh()
|
| /linux/drivers/net/ethernet/stmicro/stmmac/ |
| H A D | stmmac_ethtool.c | 953 rxfh->hfunc = ETH_RSS_HASH_TOP; in stmmac_get_rxfh() 965 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in stmmac_set_rxfh() 966 rxfh->hfunc != ETH_RSS_HASH_TOP) in stmmac_set_rxfh()
|
| /linux/include/linux/ |
| H A D | ethtool.h | 193 u8 hfunc; member 889 u8 hfunc; member
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | ethtool.c | 1270 rxfh->hfunc = ETH_RSS_HASH_TOP; in ef4_ethtool_get_rxfh() 1285 (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in ef4_ethtool_set_rxfh() 1286 rxfh->hfunc != ETH_RSS_HASH_TOP)) in ef4_ethtool_set_rxfh()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_ethtool.c | 1826 rxfh->hfunc = nn->rss_hfunc; in nfp_net_get_rxfh() 1827 if (rxfh->hfunc >= 1 << ETH_RSS_HASH_FUNCS_COUNT) in nfp_net_get_rxfh() 1828 rxfh->hfunc = ETH_RSS_HASH_UNKNOWN; in nfp_net_get_rxfh() 1841 !(rxfh->hfunc == ETH_RSS_HASH_NO_CHANGE || in nfp_net_set_rxfh() 1842 rxfh->hfunc == nn->rss_hfunc)) in nfp_net_set_rxfh()
|
| /linux/drivers/net/ethernet/intel/ice/virt/ |
| H A D | rss.c | 1783 u8 hfunc = ICE_AQ_VSI_Q_OPT_RSS_HASH_TPLZ; in ice_vc_config_rss_hfunc() local 1808 hfunc = ICE_AQ_VSI_Q_OPT_RSS_HASH_SYM_TPLZ; in ice_vc_config_rss_hfunc() 1810 if (ice_set_rss_hfunc(vsi, hfunc)) in ice_vc_config_rss_hfunc()
|
| /linux/drivers/net/ethernet/intel/idpf/ |
| H A D | idpf_ethtool.c | 432 rxfh->hfunc = ETH_RSS_HASH_TOP; in idpf_get_rxfh() 480 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in idpf_set_rxfh() 481 rxfh->hfunc != ETH_RSS_HASH_TOP) { in idpf_set_rxfh()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc_ethtool.c | 979 rxfh->hfunc = ETH_RSS_HASH_TOP; in enetc_get_rxfh() 1011 if (rxfh->hfunc != ETH_RSS_HASH_NO_CHANGE && in enetc_set_rxfh() 1012 rxfh->hfunc != ETH_RSS_HASH_TOP) in enetc_set_rxfh()
|