Lines Matching refs:nfc

7082 static int niu_get_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc)  in niu_get_hash_opts()  argument
7086 nfc->data = 0; in niu_get_hash_opts()
7088 if (!niu_ethflow_to_class(nfc->flow_type, &class)) in niu_get_hash_opts()
7093 nfc->data = RXH_DISCARD; in niu_get_hash_opts()
7095 nfc->data = niu_flowkey_to_ethflow(np->parent->flow_key[class - in niu_get_hash_opts()
7177 struct ethtool_rxnfc *nfc) in niu_get_ethtool_tcam_entry() argument
7181 struct ethtool_rx_flow_spec *fsp = &nfc->fs; in niu_get_ethtool_tcam_entry()
7186 idx = tcam_get_index(np, (u16)nfc->fs.location); in niu_get_ethtool_tcam_entry()
7191 parent->index, (u16)nfc->fs.location, idx); in niu_get_ethtool_tcam_entry()
7250 nfc->data = tcam_get_size(np); in niu_get_ethtool_tcam_entry()
7256 struct ethtool_rxnfc *nfc, in niu_get_ethtool_tcam_all() argument
7266 nfc->data = tcam_get_size(np); in niu_get_ethtool_tcam_all()
7269 for (cnt = 0, i = 0; i < nfc->data; i++) { in niu_get_ethtool_tcam_all()
7274 if (cnt == nfc->rule_cnt) { in niu_get_ethtool_tcam_all()
7283 nfc->rule_cnt = cnt; in niu_get_ethtool_tcam_all()
7318 static int niu_set_hash_opts(struct niu *np, struct ethtool_rxnfc *nfc) in niu_set_hash_opts() argument
7324 if (!niu_ethflow_to_class(nfc->flow_type, &class)) in niu_set_hash_opts()
7331 if (nfc->data & RXH_DISCARD) { in niu_set_hash_opts()
7356 if (!niu_ethflow_to_flowkey(nfc->data, &flow_key)) in niu_set_hash_opts()
7436 struct ethtool_rxnfc *nfc) in niu_add_ethtool_tcam_entry() argument
7440 struct ethtool_rx_flow_spec *fsp = &nfc->fs; in niu_add_ethtool_tcam_entry()
7450 idx = nfc->fs.location; in niu_add_ethtool_tcam_entry()