Home
last modified time | relevance | path

Searched refs:cls_rules (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c414 if (priv->cls_rules[i].used) in enetc_get_rxnfc()
422 rxnfc->fs = priv->cls_rules[rxnfc->fs.location].fs; in enetc_get_rxnfc()
430 if (!priv->cls_rules[i].used) in enetc_get_rxnfc()
463 priv->cls_rules[rxnfc->fs.location].fs = rxnfc->fs; in enetc_set_rxnfc()
464 priv->cls_rules[rxnfc->fs.location].used = 1; in enetc_set_rxnfc()
473 priv->cls_rules[rxnfc->fs.location].used = 0; in enetc_set_rxnfc()
Denetc.h264 struct enetc_cls_rule *cls_rules; member
Denetc.c1163 priv->cls_rules = kcalloc(si->num_fs_entries, sizeof(*priv->cls_rules), in enetc_alloc_si_resources()
1165 if (!priv->cls_rules) { in enetc_alloc_si_resources()
1186 kfree(priv->cls_rules); in enetc_free_si_resources()
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c638 if (priv->cls_rules[i].in_use) in dpaa2_eth_num_cls_rules()
658 rule = &priv->cls_rules[location]; in dpaa2_eth_update_cls_rule()
715 if (!priv->cls_rules[rxnfc->fs.location].in_use) in dpaa2_eth_get_rxnfc()
717 rxnfc->fs = priv->cls_rules[rxnfc->fs.location].fs; in dpaa2_eth_get_rxnfc()
721 if (!priv->cls_rules[i].in_use) in dpaa2_eth_get_rxnfc()
Ddpaa2-eth.h542 struct dpaa2_eth_cls_rule *cls_rules; member
Ddpaa2-eth.c3283 priv->cls_rules = devm_kcalloc(dev, dpaa2_eth_fs_count(priv), in dpaa2_eth_setup_dpni()
3286 if (!priv->cls_rules) { in dpaa2_eth_setup_dpni()