Lines Matching refs:rss
495 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_get_rss_hash_opts() local
497 if (!(rss->flowkey_cfg & in otx2_get_rss_hash_opts()
503 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_VLAN) in otx2_get_rss_hash_opts()
509 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_TCP) in otx2_get_rss_hash_opts()
514 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_UDP) in otx2_get_rss_hash_opts()
519 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_SCTP) in otx2_get_rss_hash_opts()
524 if (rss->flowkey_cfg & NIX_FLOW_KEY_TYPE_ESP) in otx2_get_rss_hash_opts()
545 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_set_rss_hash_opts() local
547 u32 rss_cfg = rss->flowkey_cfg; in otx2_set_rss_hash_opts()
549 if (!rss->enable) { in otx2_set_rss_hash_opts()
645 rss->flowkey_cfg = rss_cfg; in otx2_set_rss_hash_opts()
712 struct otx2_rss_info *rss; in otx2_get_rxfh_key_size() local
714 rss = &pfvf->hw.rss_info; in otx2_get_rxfh_key_size()
716 return sizeof(rss->key); in otx2_get_rxfh_key_size()
726 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_rss_ctx_delete() local
729 kfree(rss->rss_ctx[ctx_id]); in otx2_rss_ctx_delete()
730 rss->rss_ctx[ctx_id] = NULL; in otx2_rss_ctx_delete()
738 struct otx2_rss_info *rss = &pfvf->hw.rss_info; in otx2_rss_ctx_create() local
742 if (!rss->rss_ctx[ctx]) in otx2_rss_ctx_create()
748 rss->rss_ctx[ctx] = kzalloc(sizeof(*rss->rss_ctx[ctx]), GFP_KERNEL); in otx2_rss_ctx_create()
749 if (!rss->rss_ctx[ctx]) in otx2_rss_ctx_create()
763 struct otx2_rss_info *rss; in otx2_set_rxfh_context() local
773 rss = &pfvf->hw.rss_info; in otx2_set_rxfh_context()
775 if (!rss->enable) { in otx2_set_rxfh_context()
781 memcpy(rss->key, hkey, sizeof(rss->key)); in otx2_set_rxfh_context()
793 rss_ctx = rss->rss_ctx[*rss_context]; in otx2_set_rxfh_context()
794 for (idx = 0; idx < rss->rss_size; idx++) in otx2_set_rxfh_context()
807 struct otx2_rss_info *rss; in otx2_get_rxfh_context() local
810 rss = &pfvf->hw.rss_info; in otx2_get_rxfh_context()
818 if (!rss->enable && rss_context == DEFAULT_RSS_CONTEXT_GROUP) { in otx2_get_rxfh_context()
827 rss_ctx = rss->rss_ctx[rss_context]; in otx2_get_rxfh_context()
832 for (idx = 0; idx < rss->rss_size; idx++) in otx2_get_rxfh_context()
836 memcpy(hkey, rss->key, sizeof(rss->key)); in otx2_get_rxfh_context()