Lines Matching refs:rxnfc
688 struct ethtool_rxnfc *rxnfc, u32 *rule_locs)
694 switch (rxnfc->cmd) {
700 rxnfc->data = priv->rx_hash_fields;
703 rxnfc->data = dpaa2_eth_queue_count(priv);
706 rxnfc->rule_cnt = 0;
707 rxnfc->rule_cnt = dpaa2_eth_num_cls_rules(priv);
708 rxnfc->data = max_rules;
711 if (rxnfc->fs.location >= max_rules)
713 rxnfc->fs.location = array_index_nospec(rxnfc->fs.location,
715 if (!priv->cls_rules[rxnfc->fs.location].in_use)
717 rxnfc->fs = priv->cls_rules[rxnfc->fs.location].fs;
723 if (j == rxnfc->rule_cnt)
727 rxnfc->rule_cnt = j;
728 rxnfc->data = max_rules;
738 struct ethtool_rxnfc *rxnfc)
742 switch (rxnfc->cmd) {
744 if ((rxnfc->data & DPAA2_RXH_SUPPORTED) != rxnfc->data)
746 err = dpaa2_eth_set_hash(net_dev, rxnfc->data);
749 err = dpaa2_eth_update_cls_rule(net_dev, &rxnfc->fs, rxnfc->fs.location);
752 err = dpaa2_eth_update_cls_rule(net_dev, NULL, rxnfc->fs.location);