Lines Matching refs:rxnfc
720 struct ethtool_rxnfc *rxnfc, u32 *rule_locs)
726 switch (rxnfc->cmd) {
732 rxnfc->data = priv->rx_hash_fields;
735 rxnfc->data = dpaa2_eth_queue_count(priv);
738 rxnfc->rule_cnt = 0;
739 rxnfc->rule_cnt = dpaa2_eth_num_cls_rules(priv);
740 rxnfc->data = max_rules;
743 if (rxnfc->fs.location >= max_rules)
745 rxnfc->fs.location = array_index_nospec(rxnfc->fs.location,
747 if (!priv->cls_rules[rxnfc->fs.location].in_use)
749 rxnfc->fs = priv->cls_rules[rxnfc->fs.location].fs;
755 if (j == rxnfc->rule_cnt)
759 rxnfc->rule_cnt = j;
760 rxnfc->data = max_rules;
770 struct ethtool_rxnfc *rxnfc)
774 switch (rxnfc->cmd) {
776 if ((rxnfc->data & DPAA2_RXH_SUPPORTED) != rxnfc->data)
778 err = dpaa2_eth_set_hash(net_dev, rxnfc->data);
781 err = dpaa2_eth_update_cls_rule(net_dev, &rxnfc->fs, rxnfc->fs.location);
784 err = dpaa2_eth_update_cls_rule(net_dev, NULL, rxnfc->fs.location);