Lines Matching refs:rss
336 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_config_rss() local
337 int ind_tbl_len = rss->rss_size; in nicvf_config_rss()
341 mbx.rss_cfg.hash_bits = rss->hash_bits; in nicvf_config_rss()
350 mbx.rss_cfg.ind_tbl[i] = rss->ind_tbl[nextq++]; in nicvf_config_rss()
360 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_set_rss_key() local
365 nicvf_reg_write(nic, key_addr, rss->key[idx]); in nicvf_set_rss_key()
372 struct nicvf_rss_info *rss = &nic->rss_info; in nicvf_rss_init() local
378 rss->enable = false; in nicvf_rss_init()
379 rss->hash_bits = 0; in nicvf_rss_init()
383 rss->enable = true; in nicvf_rss_init()
385 netdev_rss_key_fill(rss->key, RSS_HASH_KEY_SIZE * sizeof(u64)); in nicvf_rss_init()
388 rss->cfg = RSS_IP_HASH_ENA | RSS_TCP_HASH_ENA | RSS_UDP_HASH_ENA; in nicvf_rss_init()
389 nicvf_reg_write(nic, NIC_VNIC_RSS_CFG, rss->cfg); in nicvf_rss_init()
391 rss->hash_bits = ilog2(rounddown_pow_of_two(rss->rss_size)); in nicvf_rss_init()
393 for (idx = 0; idx < rss->rss_size; idx++) in nicvf_rss_init()
394 rss->ind_tbl[idx] = ethtool_rxfh_indir_default(idx, in nicvf_rss_init()