Lines Matching refs:nfc
7084 static int niu_get_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc) in niu_get_hash_opts() argument
7088 nfc->data = 0; in niu_get_hash_opts()
7090 if (!niu_ethflow_to_class(nfc->flow_type, &class)) in niu_get_hash_opts()
7095 nfc->data = RXH_DISCARD; in niu_get_hash_opts()
7097 nfc->data = niu_flowkey_to_ethflow(np->parent->flow_key[class - in niu_get_hash_opts()
7179 struct ethtool_rxnfc *nfc) in niu_get_ethtool_tcam_entry() argument
7183 struct ethtool_rx_flow_spec *fsp = &nfc->fs; in niu_get_ethtool_tcam_entry()
7188 idx = tcam_get_index(np, (u16)nfc->fs.location); in niu_get_ethtool_tcam_entry()
7193 parent->index, (u16)nfc->fs.location, idx); in niu_get_ethtool_tcam_entry()
7252 nfc->data = tcam_get_size(np); in niu_get_ethtool_tcam_entry()
7258 struct ethtool_rxnfc *nfc, in niu_get_ethtool_tcam_all() argument
7268 nfc->data = tcam_get_size(np); in niu_get_ethtool_tcam_all()
7271 for (cnt = 0, i = 0; i < nfc->data; i++) { in niu_get_ethtool_tcam_all()
7276 if (cnt == nfc->rule_cnt) { in niu_get_ethtool_tcam_all()
7285 nfc->rule_cnt = cnt; in niu_get_ethtool_tcam_all()
7320 static int niu_set_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc) in niu_set_hash_opts() argument
7326 if (!niu_ethflow_to_class(nfc->flow_type, &class)) in niu_set_hash_opts()
7333 if (nfc->data & RXH_DISCARD) { in niu_set_hash_opts()
7358 if (!niu_ethflow_to_flowkey(nfc->data, &flow_key)) in niu_set_hash_opts()
7438 struct ethtool_rxnfc *nfc) in niu_add_ethtool_tcam_entry() argument
7442 struct ethtool_rx_flow_spec *fsp = &nfc->fs; in niu_add_ethtool_tcam_entry()
7452 idx = nfc->fs.location; in niu_add_ethtool_tcam_entry()